aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-06-14 22:34:28 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-06-14 22:34:28 +0000
commitd509c743b78da198af385fea362b632292cd00ad (patch)
tree2d60542133f640febd6111a0048c79b6d923095c /libavcodec/dv.c
parent90b4f091770b38b803ce63a9dba2c03b643e732d (diff)
downloadffmpeg-d509c743b78da198af385fea362b632292cd00ad.tar.gz
check if frame size matches old sys and assumes corrupted input, fixes #1192
Originally committed as revision 19192 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index d47929867f..7bc04789f9 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -1119,7 +1119,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
int buf_size = avpkt->size;
DVVideoContext *s = avctx->priv_data;
- s->sys = dv_frame_profile(buf);
+ s->sys = dv_frame_profile(s->sys, buf, buf_size);
if (!s->sys || buf_size < s->sys->frame_size || dv_init_dynamic_tables(s->sys))
return -1; /* NOTE: we only accept several full frames */