You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Revert "aac_latm_dec: use aac context and aac m4ac"
This reverts commit 36864ac354
since it
breaks LATM decoding in ffplay.
This commit is contained in:
@@ -2250,6 +2250,7 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx,
|
|||||||
GetBitContext *gb)
|
GetBitContext *gb)
|
||||||
{
|
{
|
||||||
AVCodecContext *avctx = latmctx->aac_ctx.avctx;
|
AVCodecContext *avctx = latmctx->aac_ctx.avctx;
|
||||||
|
MPEG4AudioConfig m4ac;
|
||||||
int config_start_bit = get_bits_count(gb);
|
int config_start_bit = get_bits_count(gb);
|
||||||
int bits_consumed, esize;
|
int bits_consumed, esize;
|
||||||
|
|
||||||
@@ -2259,8 +2260,7 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx,
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
} else {
|
} else {
|
||||||
bits_consumed =
|
bits_consumed =
|
||||||
decode_audio_specific_config(&latmctx->aac_ctx, avctx,
|
decode_audio_specific_config(NULL, avctx, &m4ac,
|
||||||
&latmctx->aac_ctx.m4ac,
|
|
||||||
gb->buffer + (config_start_bit / 8),
|
gb->buffer + (config_start_bit / 8),
|
||||||
get_bits_left(gb) / 8);
|
get_bits_left(gb) / 8);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user