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

Francois Cartegnie git at videolan.org
Tue Oct 9 13:12:05 CEST 2018


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

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

(cherry picked from commit 6f69616f154c5d12c90008e2262bce668f674db7)

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index a63ac7a62f..89855d692d 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -674,6 +674,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