Commit 7ff5a3f7 authored by Thomas Guillem's avatar Thomas Guillem

hxxx_helper: reset h264/hevc struct to 0 on clean

parent 5d3cc23b
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment