diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-17 08:52:05 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-17 08:52:05 +0400 |
commit | 6102dda1d754925e384e7e195441b1e6cd6d9a9c (patch) | |
tree | 81f3fab1a1fbec277fe587d3eab81150b4e494b6 /libavcodec/h264.c | |
parent | c237e88d51b9da12026734101a9ba578d04b4b15 (diff) |
avcodec/h264: h264_set_erpic() clear destination
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |