aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/indeo3.c
diff options
context:
space:
mode:
authorMichael Niedermayer2004-02-07 20:50:26 +0000
committerMichael Niedermayer2004-02-07 20:50:26 +0000
commitfc374fe29987504dc94b84e82cc0f345ac256d17 (patch)
tree49fa1411b8f9b830da39170d0b5fda1a1478b5e9 /libavcodec/indeo3.c
parentae2e7208f91ca2e25fb12bab198e54ff622a68fa (diff)
segfault fix
Originally committed as revision 2764 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r--libavcodec/indeo3.c6
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])