Mercurial > libavcodec.hg
changeset 4638:9f74306d4ac7 libavcodec
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>
author | banan |
---|---|
date | Thu, 08 Mar 2007 19:47:03 +0000 |
parents | fd9e324b3978 |
children | 33fc84eae7c3 |
files | cook.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }