projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39076e2
)
Don't output the first two frames, since they don't contain valid audio.
author
Ian Braithwaite
<ian@braithwaite.dk>
Thu, 8 Mar 2007 19:47:03 +0000
(19:47 +0000)
committer
Benjamin Larsson
<banan@ludd.ltu.se>
Thu, 8 Mar 2007 19:47:03 +0000
(19:47 +0000)
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
libavcodec/cook.c
patch
|
blob
|
history
diff --git
a/libavcodec/cook.c
b/libavcodec/cook.c
index
9a32214
..
07655b0
100644
(file)
--- 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;
}