changeset 9150:4fe6dee5f1dd libavcodec

If we get an error from ff_aac_parse_header() we should not trust the header info that it provides.
author alexc
date Fri, 06 Mar 2009 22:36:24 +0000
parents 955835e2bc99
children 1c478e02676a
files aac.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aac.c	Fri Mar 06 19:47:01 2009 +0000
+++ b/aac.c	Fri Mar 06 22:36:24 2009 +0000
@@ -1598,7 +1598,6 @@
         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 @@
         ff_log_missing_feature(ac->avccontext, "More than one AAC RDB per ADTS frame is", 0);
         return -1;
     }
+    }
     return size;
 }