[FFmpeg-cvslog] r16157 - trunk/libavcodec/rv10.c
benoit
subversion
Tue Dec 16 00:01:54 CET 2008
Author: benoit
Date: Tue Dec 16 00:01:54 2008
New Revision: 16157
Log:
Check extradata is large enough.
Patch by Laurent Aimar fenrir \:/ via ecp fr
Modified:
trunk/libavcodec/rv10.c
Modified: trunk/libavcodec/rv10.c
==============================================================================
--- trunk/libavcodec/rv10.c (original)
+++ trunk/libavcodec/rv10.c Tue Dec 16 00:01:54 2008
@@ -527,6 +527,11 @@ static av_cold int rv10_decode_init(AVCo
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;
More information about the ffmpeg-cvslog
mailing list