From 8616c446060ce454885254fbecbf32f437e0b827 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 11 May 2012 02:45:34 +0200 Subject: [PATCH] ffmpeg: fix deinterlace Fixes ticket1295 Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index b169701077..a9c8ad63a6 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2896,7 +2896,7 @@ static int init_input_stream(int ist_index, char *error, int error_len) return AVERROR(EINVAL); } - ist->dr1 = codec->capabilities & CODEC_CAP_DR1; + ist->dr1 = (codec->capabilities & CODEC_CAP_DR1) && !do_deinterlace; if (codec->type == AVMEDIA_TYPE_VIDEO && ist->dr1) { ist->st->codec->get_buffer = codec_get_buffer; ist->st->codec->release_buffer = codec_release_buffer;