diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2011-08-17 10:36:33 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-08-17 14:53:34 +0200 |
commit | 331971116d7d36743601bd2dc5384c5211d3bb48 (patch) | |
tree | d7c621892615a83161ae35b65f4512ab1f151326 /libavcodec/rv10.c | |
parent | 6cd9d0f77d527491d0c3626f16b8e125a8a9344b (diff) | |
download | ffmpeg-331971116d7d36743601bd2dc5384c5211d3bb48.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>
Diffstat (limited to 'libavcodec/rv10.c')
-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 3939984031..d789eff787 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -431,6 +431,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; |