[FFmpeg-cvslog] r17472 - trunk/libavcodec/ac3_parser.c

jbr subversion
Fri Feb 20 23:00:42 CET 2009


Author: jbr
Date: Fri Feb 20 23:00:41 2009
New Revision: 17472

Log:
Set the correct number of samples for E-AC-3 in the AC3 parser.

Modified:
   trunk/libavcodec/ac3_parser.c

Modified: trunk/libavcodec/ac3_parser.c
==============================================================================
--- trunk/libavcodec/ac3_parser.c	Fri Feb 20 17:20:01 2009	(r17471)
+++ trunk/libavcodec/ac3_parser.c	Fri Feb 20 23:00:41 2009	(r17472)
@@ -174,7 +174,7 @@ static int ac3_sync(uint64_t state, AACA
     hdr_info->sample_rate = hdr.sample_rate;
     hdr_info->bit_rate = hdr.bit_rate;
     hdr_info->channels = hdr.channels;
-    hdr_info->samples = AC3_FRAME_SIZE;
+    hdr_info->samples = hdr.num_blocks * 256;
     if(hdr.bitstream_id>10)
         hdr_info->codec_id = CODEC_ID_EAC3;
     else




More information about the ffmpeg-cvslog mailing list