summaryrefslogtreecommitdiffstats
path: root/libavcodec/sheervideo.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-06-10 00:24:30 +0200
committerPaul B Mahol <onemda@gmail.com>2016-06-10 00:25:36 +0200
commit0a9e781b8818832b202e286827f184d5747c88c0 (patch)
tree7dfe480effe929c3fb037846eae59c599331a6c0 /libavcodec/sheervideo.c
parent765703498aa52f38c88afb09754821b17cf60045 (diff)
downloadffmpeg-streaming-0a9e781b8818832b202e286827f184d5747c88c0.zip
ffmpeg-streaming-0a9e781b8818832b202e286827f184d5747c88c0.tar.gz
avcodec/sheervideo: fix predictions for c82p format
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/sheervideo.c')
-rw-r--r--libavcodec/sheervideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sheervideo.c b/libavcodec/sheervideo.c
index b39e67b..70fdbd8 100644
--- a/libavcodec/sheervideo.c
+++ b/libavcodec/sheervideo.c
@@ -1123,7 +1123,7 @@ static void decode_c82p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
dst_v[x / 2] = get_bits(gb, 8);
}
} else {
- int pred[4] = { -125, 128, 128, 125 };
+ int pred[4] = { 125, -128, -128, 125 };
for (x = 0; x < avctx->width; x += 2) {
int y1, y2, u, v, a1, a2;
OpenPOWER on IntegriCloud