# HG changeset patch # User banan # Date 1173383223 0 # Node ID 9f74306d4ac7bab9b89235e86758e4d66bbe4a71 # Parent fd9e324b3978932a654dfe7c289c5b1c681de383 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 diff -r fd9e324b3978 -r 9f74306d4ac7 cook.c --- a/cook.c Thu Mar 08 18:25:47 2007 +0000 +++ b/cook.c Thu Mar 08 19:47:03 2007 +0000 @@ -1068,6 +1068,9 @@ *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; }