[vlc-commits] [Git][videolan/vlc][master] 2 commits: packetizer: mpeg4video: use bs_skip instead of bs_read1
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Aug 10 08:55:58 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
a3393183 by Steve Lhomme at 2024-08-10T07:42:44+00:00
packetizer: mpeg4video: use bs_skip instead of bs_read1
When the value is not used, bs_skip should be used instead.
- - - - -
cd5b87fb by Steve Lhomme at 2024-08-10T07:42:44+00:00
packetizer: h264_slice: use bs_skip instead of bs_read1
When the value is not used, bs_skip should be used instead.
- - - - -
2 changed files:
- modules/packetizer/h264_slice.c
- modules/packetizer/mpeg4video.c
Changes:
=====================================
modules/packetizer/h264_slice.c
=====================================
@@ -181,7 +181,7 @@ h264_slice_t * h264_decode_slice( const uint8_t *p_buffer, size_t i_buffer,
p_pps->num_ref_idx_l01_default_active_minus1[1] };
if( i_slice_type == 1 || i_slice_type == 6 ) /* B slices */
- bs_read1( &s ); /* direct_spatial_mv_pred_flag */
+ bs_skip( &s, 1 ); /* direct_spatial_mv_pred_flag */
if( i_slice_type == 0 || i_slice_type == 5 ||
i_slice_type == 3 || i_slice_type == 8 ||
i_slice_type == 1 || i_slice_type == 6 ) /* P SP B slices */
=====================================
modules/packetizer/mpeg4video.c
=====================================
@@ -409,7 +409,7 @@ static int ParseVOL( decoder_t *p_dec, es_format_t *fmt,
{
/* vol control parameter */
bs_skip( &s, 2 ); /* chroma_format */
- bs_read1( &s ); /* low_delay */
+ bs_skip( &s, 1 ); /* low_delay */
if( bs_read1( &s ) )
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/140f7700e3b96da446e271e49a8fb6f984dfb763...cd5b87fb6d4de4e533f04b00040c4c98d12466b3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/140f7700e3b96da446e271e49a8fb6f984dfb763...cd5b87fb6d4de4e533f04b00040c4c98d12466b3
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