[FFmpeg-cvslog] escape130: fix colors

Paul B Mahol git at videolan.org
Thu Dec 8 06:03:16 CET 2011


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Nov 30 02:46:35 2011 +0000| [7bd8b70f19642b6ea53e0d36f53fe88edfe0d450] | committer: Paul B Mahol

escape130: fix colors

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7bd8b70f19642b6ea53e0d36f53fe88edfe0d450
---

 libavcodec/escape130.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c
index 731112e..1902a34 100644
--- a/libavcodec/escape130.c
+++ b/libavcodec/escape130.c
@@ -249,7 +249,7 @@ static int escape130_decode_frame(AVCodecContext *avctx,
                     unsigned adjust_index = get_bits(&gb, 3);
                     static const int8_t adjust[2][8] =
                         {  { 1, 1, 0, -1, -1, -1,  0,  1 },
-                           { 0, 1, 1,  0, -1, -2, -1, -1 } };
+                           { 0, 1, 1,  1,  0, -1, -1, -1 } };
                     cb = (cb + adjust[0][adjust_index]) & 31;
                     cr = (cr + adjust[1][adjust_index]) & 31;
                 }



More information about the ffmpeg-cvslog mailing list