[vlc-commits] [Git][videolan/vlc][master] packetizer: hevc: reorder is stored on sps
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Nov 23 08:56:30 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
64c3fa64 by François Cartegnie at 2023-11-23T08:34:50+00:00
packetizer: hevc: reorder is stored on sps
- - - - -
3 changed files:
- modules/codec/videotoolbox/decoder.c
- modules/packetizer/hevc_nal.c
- modules/packetizer/hevc_nal.h
Changes:
=====================================
modules/codec/videotoolbox/decoder.c
=====================================
@@ -769,7 +769,7 @@ static bool FillReorderInfoHEVC(decoder_t *p_dec, const block_t *p_block,
p_info->i_poc = POC;
p_info->i_foc = POC; /* clearly looks wrong :/ */
p_info->i_num_ts = hevc_get_num_clock_ts(p_sps, sei.p_timing);
- p_info->i_max_reorder = hevc_get_max_num_reorder(p_vps);
+ p_info->i_max_reorder = hevc_get_max_num_reorder(p_sps);
p_info->b_flush = (POC == 0) ||
(i_nal_type >= HEVC_NAL_IDR_N_LP &&
i_nal_type <= HEVC_NAL_IRAP_VCL23);
=====================================
modules/packetizer/hevc_nal.c
=====================================
@@ -1092,9 +1092,9 @@ bool hevc_get_picture_size( const hevc_sequence_parameter_set_t *p_sps,
return true;
}
-uint8_t hevc_get_max_num_reorder( const hevc_video_parameter_set_t *p_vps )
+uint8_t hevc_get_max_num_reorder( const hevc_sequence_parameter_set_t *p_sps )
{
- return p_vps->vps_max[p_vps->vps_max_sub_layers_minus1/* HighestTid */].num_reorder_pics;
+ return p_sps->sps_max[p_sps->sps_max_sub_layers_minus1/* HighestTid */].num_reorder_pics;
}
static inline uint8_t vlc_ceil_log2( uint32_t val )
=====================================
modules/packetizer/hevc_nal.h
=====================================
@@ -299,7 +299,7 @@ bool hevc_get_colorimetry( const hevc_sequence_parameter_set_t *p_sps,
video_transfer_func_t *p_transfer,
video_color_space_t *p_colorspace,
video_color_range_t *p_full_range );
-uint8_t hevc_get_max_num_reorder( const hevc_video_parameter_set_t *p_vps );
+uint8_t hevc_get_max_num_reorder( const hevc_sequence_parameter_set_t *p_sps );
bool hevc_get_slice_type( const hevc_slice_segment_header_t *, enum hevc_slice_type_e * );
/* Get level and Profile from DecoderConfigurationRecord */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/64c3fa645b39f97a992a3b01d5a8551300916653
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/64c3fa645b39f97a992a3b01d5a8551300916653
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list