mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
nuv: dont try to copy an empty frame
Fixes assertion failure Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2947e7b7a7
commit
56d09250ef
@ -262,7 +262,8 @@ retry:
|
||||
av_log(avctx, AV_LOG_ERROR, "uncompressed frame too short\n");
|
||||
height = buf_size / c->width / 3 * 2;
|
||||
}
|
||||
copy_frame(&c->pic, buf, c->width, height);
|
||||
if(height > 0)
|
||||
copy_frame(&c->pic, buf, c->width, height);
|
||||
break;
|
||||
}
|
||||
case NUV_RTJPEG_IN_LZO:
|
||||
|
Loading…
Reference in New Issue
Block a user