avcodec/bsf/dts2pts: Fix shadowing

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-05-09 13:48:20 +02:00
parent baf8651d56
commit 4df43df6e1
1 changed files with 2 additions and 2 deletions

View File

@ -269,8 +269,8 @@ static int h264_filter(AVBSFContext *ctx)
h264->sps.offset_for_non_ref_pic = sps->offset_for_non_ref_pic; h264->sps.offset_for_non_ref_pic = sps->offset_for_non_ref_pic;
h264->sps.offset_for_top_to_bottom_field = sps->offset_for_top_to_bottom_field; h264->sps.offset_for_top_to_bottom_field = sps->offset_for_top_to_bottom_field;
h264->sps.poc_cycle_length = sps->num_ref_frames_in_pic_order_cnt_cycle; h264->sps.poc_cycle_length = sps->num_ref_frames_in_pic_order_cnt_cycle;
for (int i = 0; i < h264->sps.poc_cycle_length; i++) for (int j = 0; j < h264->sps.poc_cycle_length; j++)
h264->sps.offset_for_ref_frame[i] = sps->offset_for_ref_frame[i]; h264->sps.offset_for_ref_frame[j] = sps->offset_for_ref_frame[j];
h264->picture_structure = sps->frame_mbs_only_flag ? 3 : h264->picture_structure = sps->frame_mbs_only_flag ? 3 :
(header->field_pic_flag ? (header->field_pic_flag ?