# HG changeset patch # User alexc # Date 1259744852 0 # Node ID 62b3faabb6631e945caa0974f3796e0d5a858614 # Parent 972b17631531cd6db284cc2345ff5a767960ca02 Set the SBR mode to implicit on ADTS frames occurring before the output is locked. diff -r 972b17631531 -r 62b3faabb663 aac.c --- 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;