forked from FFmpeg/FFmpeg
fftools/ffmpeg_opt: Fix precedence issue in abs_start_seek calculation
This patch corrects a C operator precedence issue in fftools/ffmpeg_opt.c where the abs_start_seek calculation did not yield the expected result due to incorrect placement of parentheses.
This commit is contained in:
parent
3778b1f6f1
commit
aa20294b31
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ static void correct_input_start_times(void)
|
||||||
if (copy_ts && start_at_zero)
|
if (copy_ts && start_at_zero)
|
||||||
ifile->ts_offset = -new_start_time;
|
ifile->ts_offset = -new_start_time;
|
||||||
else if (!copy_ts) {
|
else if (!copy_ts) {
|
||||||
abs_start_seek = is->start_time + (ifile->start_time != AV_NOPTS_VALUE) ? ifile->start_time : 0;
|
abs_start_seek = is->start_time + ((ifile->start_time != AV_NOPTS_VALUE) ? ifile->start_time : 0);
|
||||||
ifile->ts_offset = abs_start_seek > new_start_time ? -abs_start_seek : -new_start_time;
|
ifile->ts_offset = abs_start_seek > new_start_time ? -abs_start_seek : -new_start_time;
|
||||||
} else if (copy_ts)
|
} else if (copy_ts)
|
||||||
ifile->ts_offset = 0;
|
ifile->ts_offset = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue