diff options
-rw-r--r-- | libavcodec/indeo3.c | 6 |
1 files changed, 6 insertions, 0 deletions
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]) |