vlc/vlc-3.0 | branch: master | Francois Cartegnie <[email protected]> | Tue Oct 9 11:57:56 2018 +0200| [a295995e1222d61406945e73000b2c50e6168041] | committer: Francois Cartegnie
packetizer: hevc: don't expect specific NAL for IFrames (fix #21289) (cherry picked from commit eb89ac907209be7c4bd57cb18b94e1059fd71e90) > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a295995e1222d61406945e73000b2c50e6168041 --- modules/packetizer/hevc.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c index ec8873af7c..0feeb659fe 100644 --- a/modules/packetizer/hevc.c +++ b/modules/packetizer/hevc.c @@ -682,10 +682,18 @@ static block_t *ParseVCL(decoder_t *p_dec, uint8_t i_nal_type, block_t *p_frag) enum hevc_slice_type_e type; if(hevc_get_slice_type( p_sli, &type )) { - if( type == HEVC_SLICE_TYPE_P ) - p_frag->i_flags |= BLOCK_FLAG_TYPE_P; - else - p_frag->i_flags |= BLOCK_FLAG_TYPE_B; + switch(type) + { + case HEVC_SLICE_TYPE_B: + p_frag->i_flags |= BLOCK_FLAG_TYPE_B; + break; + case HEVC_SLICE_TYPE_P: + p_frag->i_flags |= BLOCK_FLAG_TYPE_P; + break; + case HEVC_SLICE_TYPE_I: + p_frag->i_flags |= BLOCK_FLAG_TYPE_I; + break; + } } } else p_frag->i_flags |= BLOCK_FLAG_TYPE_B; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
