[vlc-commits] codec: videotoolbox: don't expect proper NAL for iframe

Francois Cartegnie git at videolan.org
Tue Oct 9 13:07:36 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct  9 12:34:51 2018 +0200| [6f69616f154c5d12c90008e2262bce668f674db7] | committer: Francois Cartegnie

codec: videotoolbox: don't expect proper NAL for iframe

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

 modules/codec/videotoolbox.m | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 4719008dfe..c1b8f68118 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -668,6 +668,11 @@ static bool FillReorderInfoHEVC(decoder_t *p_dec, const block_t *p_block,
             }
 
             p_info->b_keyframe = i_nal_type >= HEVC_NAL_BLA_W_LP;
+            enum hevc_slice_type_e slice_type;
+            if(hevc_get_slice_type(p_sli, &slice_type))
+            {
+                p_info->b_keyframe |= (slice_type == HEVC_SLICE_TYPE_I);
+            }
 
             hevc_sequence_parameter_set_t *p_sps;
             hevc_picture_parameter_set_t *p_pps;



More information about the vlc-commits mailing list