Commit 4ff5e656 authored by Ian Braithwaite's avatar Ian Braithwaite Committed by Benjamin Larsson

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>

Originally committed as revision 8297 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 39076e27
...@@ -1068,6 +1068,9 @@ static int cook_decode_frame(AVCodecContext *avctx, ...@@ -1068,6 +1068,9 @@ static int cook_decode_frame(AVCodecContext *avctx,
*data_size = decode_subpacket(q, buf, avctx->block_align, data); *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; return avctx->block_align;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment