From 454959a5aa73b585e2937b948178310c74bfc297 Mon Sep 17 00:00:00 2001 From: Gian-Carlo Pascutto Date: Sun, 3 Nov 2013 12:42:47 +0200 Subject: aacdec: Set the profile during decoding Previously the profile would not be set if the bitstream needs to be decoded to know the profile. Signed-off-by: Anton Khirnov --- libavcodec/aacsbr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/aacsbr.c') diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c index 650f7aa7e2..d3822477cc 100644 --- a/libavcodec/aacsbr.c +++ b/libavcodec/aacsbr.c @@ -919,6 +919,7 @@ static void read_sbr_extension(AACContext *ac, SpectralBandReplication *sbr, } else { #if 1 *num_bits_left -= ff_ps_read_data(ac->avctx, gb, &sbr->ps, *num_bits_left); + ac->avctx->profile = FF_PROFILE_AAC_HE_V2; #else avpriv_report_missing_feature(ac->avctx, "Parametric Stereo"); skip_bits_long(gb, *num_bits_left); // bs_fill_bits -- cgit v1.2.3