[vlc-commits] hxxx_helper: remove hevc annexb config chain storage

François Cartegnie git at videolan.org
Fri Nov 24 13:11:54 CET 2017


vlc | branch: master | François Cartegnie <fcvlcdev at free.fr> | Fri Nov 24 12:51:34 2017 +0100| [fa2763a46474d67d4af5405f445529a35e7a4d11] | committer: Thomas Guillem

hxxx_helper: remove hevc annexb config chain storage

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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 cefd80a3a5..b250561c2e 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 9a87e4e2f4..026706b69e 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;
     };
 



More information about the vlc-commits mailing list