Hi, On Sun, Oct 16, 2011 at 11:08 PM, Anton Khirnov <[email protected]> wrote: > Guessing from bitrate will provide adequate results in most cases. > --- > We have this ugly thing in utils.c cargoculted from 2003 that tries to > seek before the end for mpeg and mpegts and guesses the duration from > the packets it finds there. > > I think this kind of format-specific hacks isn't justified, so we should > get rid of it. Alternatively we could try to make this more generic or > move the code to mpeg/mpegts demuxers. > > Opinions?
Please don't "just" remove, bitrate (VBR) is often not sufficient. Moving this into format-specific code is a great idea, e.g. using a "get_duration" callback, just like we have a get_pts() callback already. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
