On 28/03/14 03:37, Vittorio Giovara wrote: > From: Michael Niedermayer <[email protected]> > > Additional fixes by Nigel Touati-Evans <[email protected]>. > The method guess_ni_flag needs to divide timestamps in the index by > sample_size, if it is set in order to compare different streams correctly. > > Bug-Id: 666 > CC: [email protected] > Sample-Id: yet-another-broken-interleaved-avi.avi > Signed-off-by: Vittorio Giovara <[email protected]> > --- > No better bug number for the issue at hand. > > This fixes desync for badly interleaved files, such as the one provided, in > mpv and possibly other players. Thanks to wm4 for testing this patch and > confirming it fixes the bug. >
If I read it correctly it marks as non interleaved every file with streams drifting by 2s from each other or that would require to buffer of 64MB in order to decode at the same time. I'd rather have a self contained function and forward the malloc failure though. Patch will come once I wake up again. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
