Commit fc374fe2 authored by Michael Niedermayer's avatar Michael Niedermayer

segfault fix

Originally committed as revision 2764 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ae2e7208
...@@ -1056,6 +1056,12 @@ static int indeo3_decode_frame(AVCodecContext *avctx, ...@@ -1056,6 +1056,12 @@ static int indeo3_decode_frame(AVCodecContext *avctx,
unsigned char *src, *dest; unsigned char *src, *dest;
int y; int y;
/* no supplementary picture */
if (buf_size == 0) {
*data_size = 0;
return 0;
}
iv_decode_frame(s, buf, buf_size); iv_decode_frame(s, buf, buf_size);
if(s->frame.data[0]) if(s->frame.data[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment