[Ffmpeg-cvslog] r8297 - trunk/libavcodec/cook.c
banan
subversion
Thu Mar 8 20:47:03 CET 2007
Author: banan
Date: Thu Mar 8 20:47:03 2007
New Revision: 8297
Modified:
trunk/libavcodec/cook.c
Log:
Don't output the first two frames, since they don't contain valid audio.
This also eases comparison of decoded output with Real's binary decoder.
Patch by Ian Braithwaite <ian at braithwaite dot dk>
Modified: trunk/libavcodec/cook.c
==============================================================================
--- trunk/libavcodec/cook.c (original)
+++ trunk/libavcodec/cook.c Thu Mar 8 20:47:03 2007
@@ -1068,6 +1068,9 @@ static int cook_decode_frame(AVCodecCont
*data_size = decode_subpacket(q, buf, avctx->block_align, data);
+ /* Discard the first two frames: no valid audio. */
+ if (avctx->frame_number < 2) *data_size = 0;
+
return avctx->block_align;
}
More information about the ffmpeg-cvslog
mailing list