Commit 22324615 authored by banan's avatar banan

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>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8297 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 53633803
......@@ -1068,6 +1068,9 @@ static int cook_decode_frame(AVCodecContext *avctx,
*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;
}
......
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