summaryrefslogtreecommitdiff
path: root/libavcodec/aacsbr.c
diff options
context:
space:
mode:
authorGian-Carlo Pascutto <gcp@sjeng.org>2013-11-03 12:42:47 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 08:51:26 +0100
commit454959a5aa73b585e2937b948178310c74bfc297 (patch)
tree153e31ea0c5680bc38f22e745ffab2f304e087fe /libavcodec/aacsbr.c
parentda6506c607eda585ba4b15430cf3c9a2ce09c3a9 (diff)
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 <anton@khirnov.net>
Diffstat (limited to 'libavcodec/aacsbr.c')
-rw-r--r--libavcodec/aacsbr.c1
1 files changed, 1 insertions, 0 deletions
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