Permalink
Browse files

changed: allow 4 second skew between streams in mov before attempting…

… to seek

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
  • Loading branch information...
elupus authored and jyavenard committed Dec 8, 2010
1 parent 92b702f commit e4170c604e6a6af969e5de74ac740ac596686da8
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/external/FFmpeg/libavformat/mov.c
@@ -3225,8 +3225,8 @@ static AVIndexEntry *mov_find_next_sample(AVFormatContext *s, AVStream **st)
if (!sample || (!s->pb->seekable && current_sample->pos < sample->pos) ||
(s->pb->seekable &&
((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) <= 4*AV_TIME_BASE && current_sample->pos < sample->pos) ||
(FFABS(best_dts - dts) > 4*AV_TIME_BASE && dts < best_dts)))))) {
sample = current_sample;
best_dts = dts;
*st = avst;

0 comments on commit e4170c6

Please sign in to comment.