changeset 10621:62b3faabb663 libavcodec

Set the SBR mode to implicit on ADTS frames occurring before the output is locked.
author alexc
date Wed, 02 Dec 2009 09:07:32 +0000
parents 972b17631531
children 2474aceea736
files aac.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/aac.c	Wed Dec 02 04:06:27 2009 +0000
+++ b/aac.c	Wed Dec 02 09:07:32 2009 +0000
@@ -1687,6 +1687,8 @@
         } 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;