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:
bdfae2a
)
Set data_size to zero when DCA header parse failed
author
Limin Wang
<lance.lmwang@gmail.com>
Thu, 6 Sep 2007 14:55:13 +0000
(14:55 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 6 Sep 2007 14:55:13 +0000
(14:55 +0000)
Patch by Limin Wang <lance('\\'>>1)lmwang>(0x24^'D')<gmail>('/' & 0xFE)<com>
Thread [PATCH] set data_size to zero if failed to parse dca header
Originally committed as revision 10423 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dca.c
patch
|
blob
|
history
diff --git
a/libavcodec/dca.c
b/libavcodec/dca.c
index 0426693d4398bb72f9eaa5fced716c956144401a..e99dac0266aa9a27fa7fea5c9e65c8f8ab289f2b 100644
(file)
--- a/
libavcodec/dca.c
+++ b/
libavcodec/dca.c
@@
-1151,6
+1151,7
@@
static int dca_decode_frame(AVCodecContext * avctx,
init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8);
if (dca_parse_frame_header(s) < 0) {
//seems like the frame is corrupt, try with the next one
+ *data_size=0;
return buf_size;
}
//set AVCodec values with parsed data