mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/mpegvideo: ff_mpeg_set_erpic() clear destination
Fixes crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
533bc4c0a3
commit
8ef9dcf1d7
@ -3199,6 +3199,7 @@ void ff_mpeg_set_erpic(ERPicture *dst, Picture *src)
|
||||
{
|
||||
int i;
|
||||
|
||||
memset(dst, 0, sizeof(*dst));
|
||||
if (!src)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user