1
From dec458b900439316ebdefa0de2bd1249440859cf Mon Sep 17 00:00:00 2001
2
From: Kostya Shishkov <kostya.shishkov@gmail.com>
3
Date: Wed, 17 Aug 2011 10:36:33 +0200
4
Subject: [PATCH 32/70] rv10/20: tell decoder to use edge emulation
6
This removes out-of-edge motion compensation artifacts (easily spotted green
7
blocks in avplay, gray blocks in transcoding), for example here:
8
http://samples.libav.org/samples/real/tv_watching_t1.rm
10
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11
(cherry picked from commit 331971116d7d36743601bd2dc5384c5211d3bb48)
13
Signed-off-by: Anton Khirnov <anton@khirnov.net>
15
libavcodec/rv10.c | 1 +
16
1 files changed, 1 insertions(+), 0 deletions(-)
18
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
19
index 6227dc6..78f97b1 100644
20
--- a/libavcodec/rv10.c
21
+++ b/libavcodec/rv10.c
22
@@ -438,6 +438,7 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
24
s->out_format = FMT_H263;
25
s->codec_id= avctx->codec_id;
26
+ avctx->flags |= CODEC_FLAG_EMU_EDGE;
28
s->orig_width = s->width = avctx->coded_width;
29
s->orig_height= s->height = avctx->coded_height;