History

avcodec/bsf/dts2pts: Fix shadowing

Andreas Rheinhardt committed 2 years ago

Commit 4df43df1 parent baf86511 file · +2 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/bsf/dts2pts.c+2−2
@@ -269,8 +269,8 @@ static int h264_filter(AVBSFContext *ctx) · 268 unmodified lines
269269 h264->sps.offset_for_non_ref_pic = sps->offset_for_non_ref_pic;
270270 h264->sps.offset_for_top_to_bottom_field = sps->offset_for_top_to_bottom_field;
271271 h264->sps.poc_cycle_length = sps->num_ref_frames_in_pic_order_cnt_cycle;
272− for (int i = 0; i < h264->sps.poc_cycle_length; i++)
273− h264->sps.offset_for_ref_frame[i] = sps->offset_for_ref_frame[i];
272+ for (int j = 0; j < h264->sps.poc_cycle_length; j++)
273+ h264->sps.offset_for_ref_frame[j] = sps->offset_for_ref_frame[j];
274274
275275 h264->picture_structure = sps->frame_mbs_only_flag ? 3 :
276276 (header->field_pic_flag ?

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t