diff options
author | Ian Braithwaite <ian@braithwaite.dk> | 2007-03-08 19:47:03 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2007-03-08 19:47:03 +0000 |
commit | 4ff5e6563e5d4969bb1882a010b3ed67ebff314d (patch) | |
tree | a48e677058bb5d8eac3510850efac84fa8c1bb0a /libavcodec/cook.c | |
parent | 39076e27ded9f31158e5fa440059a04650cfdc40 (diff) | |
download | ffmpeg-4ff5e6563e5d4969bb1882a010b3ed67ebff314d.tar.gz |
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
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 9a3221414a..07655b01ce 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -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; } |