[vlc-commits] hxxx_helper: reset h264/hevc struct to 0 on clean
Thomas Guillem
git at videolan.org
Tue Jan 9 18:19:51 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan 9 09:27:45 2018 +0100| [7ff5a3f78ec6901ae682edb716e05eb3a0297d98] | committer: Thomas Guillem
hxxx_helper: reset h264/hevc struct to 0 on clean
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ff5a3f78ec6901ae682edb716e05eb3a0297d98
---
modules/codec/hxxx_helper.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/hxxx_helper.c b/modules/codec/hxxx_helper.c
index b5ec806e0d..c517a2c04e 100644
--- a/modules/codec/hxxx_helper.c
+++ b/modules/codec/hxxx_helper.c
@@ -71,6 +71,7 @@ hxxx_helper_clean(struct hxxx_helper *hh)
h264_release_sps(hnal->h264_sps));
RELEASE_NALS(hh->h264.pps_list, H264_PPS_ID_MAX,
h264_release_pps(hnal->h264_pps));
+ memset(&hh->h264, 0, sizeof(hh->h264));
break;
case VLC_CODEC_HEVC:
RELEASE_NALS(hh->hevc.vps_list, HEVC_VPS_ID_MAX,
@@ -79,6 +80,7 @@ hxxx_helper_clean(struct hxxx_helper *hh)
hevc_rbsp_release_sps(hnal->hevc_sps));
RELEASE_NALS(hh->hevc.pps_list, HEVC_PPS_ID_MAX,
hevc_rbsp_release_pps(hnal->hevc_pps));
+ memset(&hh->hevc, 0, sizeof(hh->hevc));
break;
default:
vlc_assert_unreachable();
More information about the vlc-commits
mailing list