[FFmpeg-devel] [PATCH 3/5] concatdec: move duration calculating code to open_file
Marton Balint
cus at passwd.hu
Sun Nov 1 23:59:17 CET 2015
On Fri, 30 Oct 2015, Nicolas George wrote:
> Le quartidi 4 brumaire, an CCXXIV, Marton Balint a écrit :
>> Hmm. I need this computed here for the next patch. Maybe we could calcualate
>> the duration here and then update it in open_next_file as well?
>
> That is probably possible somehow but a bit tricky. Can you explain why you
> need the duration at this point?
Because I add it to the metadata store here in the next patch, which
metadata will be set for every file packet, so calculating it at the end
of file is not an option.
I will rework the patch series and drop this change, so only the metadata
will be affected by the unknown duration, and not the file->duration which
is used to calculate the packet timestamps.
Regards,
Marton
More information about the ffmpeg-devel
mailing list