From fa2763a46474d67d4af5405f445529a35e7a4d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cartegnie?= <fcvlcdev@free.fr> Date: Fri, 24 Nov 2017 12:51:34 +0100 Subject: [PATCH] hxxx_helper: remove hevc annexb config chain storage Signed-off-by: Thomas Guillem <thomas@gllm.fr> --- modules/codec/hxxx_helper.c | 13 ------------- modules/codec/hxxx_helper.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/modules/codec/hxxx_helper.c b/modules/codec/hxxx_helper.c index cefd80a3a5d2..b250561c2e47 100644 --- a/modules/codec/hxxx_helper.c +++ b/modules/codec/hxxx_helper.c @@ -79,7 +79,6 @@ 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)); - free(hh->hevc.p_annexb_config_nal); break; default: vlc_assert_unreachable(); @@ -452,18 +451,6 @@ hevc_helper_set_extra(struct hxxx_helper *hh, const void *p_extra, return VLC_EGENERIC; hh->b_is_xvcC = true; - size_t i_buf; - uint8_t *p_buf = hevc_hvcC_to_AnnexB_NAL(p_extra, i_extra, &i_buf, - NULL); - if (!p_buf) - { - msg_Dbg(hh->p_obj, "hevc_hvcC_to_AnnexB_NAL failed"); - return VLC_EGENERIC; - } - - hh->hevc.p_annexb_config_nal = p_buf; - hh->hevc.i_annexb_config_nal = i_buf; - return helper_process_hvcC_hevc( hh, p_extra, i_extra ); } else /* Can't handle extra that is not hvcC */ diff --git a/modules/codec/hxxx_helper.h b/modules/codec/hxxx_helper.h index 9a87e4e2f4b5..026706b69e4e 100644 --- a/modules/codec/hxxx_helper.h +++ b/modules/codec/hxxx_helper.h @@ -66,8 +66,6 @@ struct hxxx_helper uint8_t i_sps_count; uint8_t i_pps_count; uint8_t i_vps_count; - void *p_annexb_config_nal; - size_t i_annexb_config_nal; } hevc; }; -- GitLab