diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-02-07 20:50:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-02-07 20:50:26 +0000 |
commit | fc374fe29987504dc94b84e82cc0f345ac256d17 (patch) | |
tree | 49fa1411b8f9b830da39170d0b5fda1a1478b5e9 /libavcodec | |
parent | ae2e7208f91ca2e25fb12bab198e54ff622a68fa (diff) | |
download | ffmpeg-fc374fe29987504dc94b84e82cc0f345ac256d17.tar.gz |
segfault fix
Originally committed as revision 2764 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-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]) |