diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2011-08-17 10:36:33 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-09-26 19:26:30 +0200 |
commit | dec458b900439316ebdefa0de2bd1249440859cf (patch) | |
tree | b5d09e1016f3f180b479a06e4b993b616c275e57 | |
parent | fe3e7297fe56a383baca484dea2c0d603ae305f8 (diff) | |
download | ffmpeg-dec458b900439316ebdefa0de2bd1249440859cf.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>
-rw-r--r-- | libavcodec/rv10.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 6227dc6f6c..78f97b16b1 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -438,6 +438,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; |