From 6102dda1d754925e384e7e195441b1e6cd6d9a9c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 17 Mar 2014 05:52:05 +0100 Subject: [PATCH] avcodec/h264: h264_set_erpic() clear destination Signed-off-by: Michael Niedermayer --- libavcodec/h264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3817db687c..6af869ae42 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3010,6 +3010,8 @@ static void h264_set_erpic(ERPicture *dst, H264Picture *src) { int i; + memset(dst, 0, sizeof(*dst)); + if (!src) return;