ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Sat Jun 8 22:45:08 2024 +0200| [5f31a4fd1613e310c01935836170a171e36bfa02] | committer: Andreas Rheinhardt
avformat/vvc: Don't use uint8_t iterators, fix shadowing Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5f31a4fd1613e310c01935836170a171e36bfa02 --- libavformat/vvc.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libavformat/vvc.c b/libavformat/vvc.c index 595492cd1e..3a686c9910 100644 --- a/libavformat/vvc.c +++ b/libavformat/vvc.c @@ -567,7 +567,6 @@ static void vvcc_close(VVCDecoderConfigurationRecord *vvcc) static int vvcc_write(AVIOContext *pb, VVCDecoderConfigurationRecord *vvcc) { - uint8_t i; uint16_t vps_count = 0, sps_count = 0, pps_count = 0; /* * It's unclear how to properly compute these fields, so @@ -615,18 +614,18 @@ static int vvcc_write(AVIOContext *pb, VVCDecoderConfigurationRecord *vvcc) av_log(NULL, AV_LOG_TRACE, "ptl_multilayer_enabled_flag: %" PRIu8 "\n", vvcc->ptl.ptl_multilayer_enabled_flag); - for (i = 0; i < vvcc->ptl.num_bytes_constraint_info; i++) { + for (int i = 0; i < vvcc->ptl.num_bytes_constraint_info; i++) { av_log(NULL, AV_LOG_TRACE, "general_constraint_info[%d]: %" PRIu8 "\n", i, vvcc->ptl.general_constraint_info[i]); } - for (i = 0; i < vvcc->num_sublayers - 1; i++) { + for (int i = 0; i < vvcc->num_sublayers - 1; i++) { av_log(NULL, AV_LOG_TRACE, - "ptl_sublayer_level_present_flag[%" PRIu8 "]: %" PRIu8 "\n", i, + "ptl_sublayer_level_present_flag[%d]: %" PRIu8 "\n", i, vvcc->ptl.ptl_sublayer_level_present_flag[i]); av_log(NULL, AV_LOG_TRACE, - "sublayer_level_idc[%" PRIu8 "]: %" PRIu8 "\n", i, + "sublayer_level_idc[%d]: %" PRIu8 "\n", i, vvcc->ptl.sublayer_level_idc[i]); } @@ -634,9 +633,9 @@ static int vvcc_write(AVIOContext *pb, VVCDecoderConfigurationRecord *vvcc) "num_sub_profiles: %" PRIu8 "\n", vvcc->ptl.ptl_num_sub_profiles); - for (i = 0; i < vvcc->ptl.ptl_num_sub_profiles; i++) { + for (unsigned i = 0; i < vvcc->ptl.ptl_num_sub_profiles; i++) { av_log(NULL, AV_LOG_TRACE, - "general_sub_profile_idc[%" PRIu8 "]: %" PRIx32 "\n", i, + "general_sub_profile_idc[%u]: %" PRIx32 "\n", i, vvcc->ptl.general_sub_profile_idc[i]); } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".