mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/concatdec: fix cur_dts based duration calculation with nonzero stream start_time
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
0a98622cbe
commit
679cbd8f18
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ static int64_t get_best_effort_duration(ConcatFile *file, AVFormatContext *avf)
|
|||
if (avf->duration > 0)
|
||||
return avf->duration - (file->file_inpoint - file->file_start_time);
|
||||
if (file->next_dts != AV_NOPTS_VALUE)
|
||||
return file->next_dts - (file->file_inpoint - file->file_start_time);
|
||||
return file->next_dts - file->file_inpoint;
|
||||
return AV_NOPTS_VALUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue