You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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:
committed by
Gyan Doshi
parent
3778b1f6f1
commit
aa20294b31
@@ -354,7 +354,7 @@ static void correct_input_start_times(void)
|
||||
if (copy_ts && start_at_zero)
|
||||
ifile->ts_offset = -new_start_time;
|
||||
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;
|
||||
} else if (copy_ts)
|
||||
ifile->ts_offset = 0;
|
||||
|
Reference in New Issue
Block a user