~ubuntu-branches/ubuntu/raring/libav/raring-security

« back to all changes in this revision

Viewing changes to debian/patches/post-0.7.1/0032-rv10-20-tell-decoder-to-use-edge-emulation.patch

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2011-09-28 09:18:34 UTC
  • mfrom: (1.3.7 sid)
  • Revision ID: package-import@ubuntu.com-20110928091834-w415mnuh06h4zpvc
Tags: 4:0.7.1-7ubuntu2
Revert "Convert package to include multiarch support."

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
5
 
 
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
 
9
 
 
10
Signed-off-by: Diego Biurrun <diego@biurrun.de>
 
11
(cherry picked from commit 331971116d7d36743601bd2dc5384c5211d3bb48)
 
12
 
 
13
Signed-off-by: Anton Khirnov <anton@khirnov.net>
 
14
---
 
15
 libavcodec/rv10.c |    1 +
 
16
 1 files changed, 1 insertions(+), 0 deletions(-)
 
17
 
 
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)
 
23
     s->avctx= avctx;
 
24
     s->out_format = FMT_H263;
 
25
     s->codec_id= avctx->codec_id;
 
26
+    avctx->flags |= CODEC_FLAG_EMU_EDGE;
 
27
 
 
28
     s->orig_width = s->width  = avctx->coded_width;
 
29
     s->orig_height= s->height = avctx->coded_height;
 
30
-- 
 
31
1.7.4.1
 
32