[FFmpeg-devel] [PATCH] movdec: interleave streams better.

Joakim Plate elupus at ecce.se
Sat Dec 1 00:42:36 CET 2012


Hi

On Fri, Nov 30, 2012 at 11:06 PM, Reimar Döffinger <Reimar.Doeffinger at gmx.de
> wrote:

>                   ((msc->pb != s->pb && dts < best_dts) || (msc->pb ==
> s->pb &&
> -                 ((FFABS(best_dts - dts) <= AV_TIME_BASE &&
> current_sample->pos < sample->pos) ||
> -                  (FFABS(best_dts - dts) > AV_TIME_BASE && dts <
> best_dts)))))) {
> +                 ((FFABS(best_dts - dts) <= AV_TIME_BASE / 4 &&
> current_sample->pos < sample->pos) ||
> +                  (FFABS(best_dts - dts) > AV_TIME_BASE / 4 && dts <
> best_dts)))))) {
>                  sample = current_sample;
>


We have this set way higher in xbmc. It was at 8 secs until we noted issues
with us having
a limited desync of exactly 8 sec. So now it's set to 4 seconds.

1 second was too small on some apple trailers, casusing severe cache
thrashing. Sadly it
was way to long ago to remember the sample.

Joakim


More information about the ffmpeg-devel mailing list