[vlc-commits] hxxx_helper: reset h264/hevc struct to 0 on clean

Thomas Guillem git at videolan.org
Fri Jan 12 09:48:44 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan  9 09:27:45 2018 +0100| [2671c107f51a6df0443f0e2d023b8d1374a2fb73] | committer: Thomas Guillem

hxxx_helper: reset h264/hevc struct to 0 on clean

(cherry picked from commit 7ff5a3f78ec6901ae682edb716e05eb3a0297d98)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2671c107f51a6df0443f0e2d023b8d1374a2fb73
---

 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