Commit 679cbd8f authored by Marton Balint's avatar Marton Balint

avformat/concatdec: fix cur_dts based duration calculation with nonzero stream start_time

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 0a98622c
...@@ -325,7 +325,7 @@ static int64_t get_best_effort_duration(ConcatFile *file, AVFormatContext *avf) ...@@ -325,7 +325,7 @@ static int64_t get_best_effort_duration(ConcatFile *file, AVFormatContext *avf)
if (avf->duration > 0) if (avf->duration > 0)
return avf->duration - (file->file_inpoint - file->file_start_time); return avf->duration - (file->file_inpoint - file->file_start_time);
if (file->next_dts != AV_NOPTS_VALUE) 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; return AV_NOPTS_VALUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment