Commit 8ef9dcf1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegvideo: ff_mpeg_set_erpic() clear destination

Fixes crash
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 533bc4c0
...@@ -3199,6 +3199,7 @@ void ff_mpeg_set_erpic(ERPicture *dst, Picture *src) ...@@ -3199,6 +3199,7 @@ void ff_mpeg_set_erpic(ERPicture *dst, Picture *src)
{ {
int i; int i;
memset(dst, 0, sizeof(*dst));
if (!src) if (!src)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment