From d608a27d9e28d24ab56acc4ea6bfb13b2802035c Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Fri, 3 May 2013 10:32:45 +0200 Subject: [PATCH] lavf/concatdec: remove invalid check for AVSEEK_FLAG_BACKWARD. --- libavformat/concatdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 5359ad149d..78362e2c65 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -341,7 +341,7 @@ static int real_seek(AVFormatContext *avf, int stream, return ret; ret = try_seek(avf, stream, min_ts, ts, max_ts, flags); - if (ret < 0 && !(flags & AVSEEK_FLAG_BACKWARD) && + if (ret < 0 && left < cat->nb_files - 1 && cat->files[left + 1].start_time < max_ts) { if ((ret = open_file(avf, left + 1)) < 0)