From fc374fe29987504dc94b84e82cc0f345ac256d17 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 7 Feb 2004 20:50:26 +0000 Subject: [PATCH] segfault fix Originally committed as revision 2764 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/indeo3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index cad8e982bd..12f4ced6d2 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -1056,6 +1056,12 @@ static int indeo3_decode_frame(AVCodecContext *avctx, unsigned char *src, *dest; int y; + /* no supplementary picture */ + if (buf_size == 0) { + *data_size = 0; + return 0; + } + iv_decode_frame(s, buf, buf_size); if(s->frame.data[0])