Mercurial > libavcodec.hg
diff dv.c @ 9855:756ac43c7fd9 libavcodec
check if frame size matches old sys and assumes corrupted input, fixes #1192
author | bcoudurier |
---|---|
date | Sun, 14 Jun 2009 22:34:28 +0000 |
parents | e52891e48ceb |
children | ff2358195bc7 |
line wrap: on
line diff
--- a/dv.c Sun Jun 14 09:55:28 2009 +0000 +++ b/dv.c Sun Jun 14 22:34:28 2009 +0000 @@ -1119,7 +1119,7 @@ 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 */