Author: alexc
Date: Thu Nov 26 22:52:54 2009
New Revision: 5459

Log:
Set ext_sample_rate for implicit SBR. This is done in the SBR code so that it
doesn't have to be duplicated in all of the formats which can contain AAC.

Modified:
   aac-sbr/aacsbr.c

Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c    Thu Nov 26 22:52:52 2009        (r5458)
+++ aac-sbr/aacsbr.c    Thu Nov 26 22:52:54 2009        (r5459)
@@ -806,6 +806,9 @@ int ff_decode_sbr_extension(AACContext *
     GetBitContext *gb = &gbc;
     skip_bits_long(gb_host, cnt*8 - 4);
 
+    if (!ac->m4ac.ext_sample_rate)
+        ac->m4ac.ext_sample_rate = 2 * ac->m4ac.sample_rate;
+
     if (crc) {
         skip_bits(gb, 10); // bs_sbr_crc_bits; FIXME - implement CRC check
         num_sbr_bits += 10;
_______________________________________________
FFmpeg-soc mailing list
FFmpeg-soc@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to