aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2011-08-17 10:36:33 +0200
committerReinhard Tartler <siretart@tauware.de>2011-12-24 12:20:32 +0100
commite7746f834a7b718f6459b08112bf0d6625362e42 (patch)
tree80b7bb88c101ad67bccbd42ab1b606796715b4cb
parent973bdafe05d051b6e83467c0c4ef548d2ea9a901 (diff)
downloadffmpeg-e7746f834a7b718f6459b08112bf0d6625362e42.tar.gz
rv10/20: tell decoder to use edge emulation
This removes out-of-edge motion compensation artifacts (easily spotted green blocks in avplay, gray blocks in transcoding), for example here: http://samples.libav.org/samples/real/tv_watching_t1.rm Signed-off-by: Diego Biurrun <diego@biurrun.de> (cherry picked from commit 331971116d7d36743601bd2dc5384c5211d3bb48) Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r--libavcodec/rv10.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index b6ca031dfa..7b635b3a1c 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -454,6 +454,7 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
s->avctx= avctx;
s->out_format = FMT_H263;
s->codec_id= avctx->codec_id;
+ avctx->flags |= CODEC_FLAG_EMU_EDGE;
s->orig_width = s->width = avctx->coded_width;
s->orig_height= s->height = avctx->coded_height;