mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
segfault fix
Originally committed as revision 2764 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ae2e7208f9
commit
fc374fe299
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user