Browse Source

Check extradata is large enough.

Patch by Laurent Aimar fenrir \:/ via ecp fr

Originally committed as revision 16157 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Laurent Aimar Benoit Fouet 16 years ago
parent
commit
ac52613c16
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/rv10.c

+ 5
- 0
libavcodec/rv10.c View File

@@ -527,6 +527,11 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
MpegEncContext *s = avctx->priv_data;
static int done=0;

if (avctx->extradata_size < 8) {
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
return -1;
}

MPV_decode_defaults(s);

s->avctx= avctx;


Loading…
Cancel
Save