diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 49bc70c28be12c423c96cfa329964f618da3e70a..aea6321518a636bd51387a6593025b35aff99298 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -2470,8 +2470,11 @@ void ff_mpeg_set_erpic(ERPicture *dst, Picture *src) { int i; - if (!src) + if (!src) { + dst->f = NULL; + dst->tf = NULL; return; + } dst->f = src->f; dst->tf = &src->tf;