[FFmpeg-cvslog] r20700 - trunk/libavcodec/aac.c

alexc subversion
Wed Dec 2 10:07:33 CET 2009


Author: alexc
Date: Wed Dec  2 10:07:32 2009
New Revision: 20700

Log:
Set the SBR mode to implicit on ADTS frames occurring before the output is locked.

Modified:
   trunk/libavcodec/aac.c

Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c	Wed Dec  2 05:06:27 2009	(r20699)
+++ trunk/libavcodec/aac.c	Wed Dec  2 10:07:32 2009	(r20700)
@@ -1687,6 +1687,8 @@ static int parse_adts_frame_header(AACCo
         } else if (ac->output_configured != OC_LOCKED) {
             ac->output_configured = OC_NONE;
         }
+        if (ac->output_configured != OC_LOCKED)
+            ac->m4ac.sbr = -1;
         ac->m4ac.sample_rate     = hdr_info.sample_rate;
         ac->m4ac.sampling_index  = hdr_info.sampling_index;
         ac->m4ac.object_type     = hdr_info.object_type;



More information about the ffmpeg-cvslog mailing list