diff options
author | Alex Converse <alex.converse@gmail.com> | 2009-03-06 22:36:24 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2009-03-06 22:36:24 +0000 |
commit | 51741a82c3265cc549baa0a342450f1dac8581a1 (patch) | |
tree | a35f37f3c242d0da46d69d4bce888e6678f1c1a1 /libavcodec/aac.c | |
parent | 496dcbbc86b679a3bc23421ed71a35ca1bb8fd9b (diff) | |
download | ffmpeg-51741a82c3265cc549baa0a342450f1dac8581a1.tar.gz |
If we get an error from ff_aac_parse_header() we should not trust the header info that it provides.
Originally committed as revision 17860 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac.c')
-rw-r--r-- | libavcodec/aac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c index 694f406823..e10905eccf 100644 --- a/libavcodec/aac.c +++ b/libavcodec/aac.c @@ -1598,7 +1598,6 @@ static int parse_adts_frame_header(AACContext * ac, GetBitContext * gb) { ac->m4ac.sample_rate = hdr_info.sample_rate; ac->m4ac.sampling_index = hdr_info.sampling_index; ac->m4ac.object_type = hdr_info.object_type; - } if (hdr_info.num_aac_frames == 1) { if (!hdr_info.crc_absent) skip_bits(gb, 16); @@ -1606,6 +1605,7 @@ static int parse_adts_frame_header(AACContext * ac, GetBitContext * gb) { ff_log_missing_feature(ac->avccontext, "More than one AAC RDB per ADTS frame is", 0); return -1; } + } return size; } |