[Ffmpeg-cvslog] r8334 - trunk/libavformat/matroska.c

Uoti Urpala uoti.urpala
Fri Mar 16 00:25:29 CET 2007


On Thu, 2007-03-15 at 18:14 -0500, Rich Felker wrote:
> agree with you of course, that requiring decoding to get correct
> timestamps is broken since timestamps are needed for framecopy, etc.

Though you only need to generate them for encoding with framecopy if the
source format does not have explicit dts values but the target format
does.

> However, if it's ever expensive to get them at demuxing time, it might
> be an acceptable optimization to defer to decode-time as long as it
> doesn't grossly increase the complexity.. If it's never expensive to
> get them while demuxing, I think the deferring to decode is probably
> just nasty complexity.

Doing the calculations before or after decoding doesn't affect
complexity much. If you do it after decoding you can have more
information available to do it more reliably at that time.





More information about the ffmpeg-cvslog mailing list