summaryrefslogtreecommitdiffstats
path: root/libavcodec/sheervideo.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-06-10 09:52:38 +0200
committerPaul B Mahol <onemda@gmail.com>2016-06-10 09:52:38 +0200
commitc156420bce9e716cb3759c6e03909de07b1308f5 (patch)
tree16a6720ba5bdda3cd7b3504c9da3c6fec0709442 /libavcodec/sheervideo.c
parent0a9e781b8818832b202e286827f184d5747c88c0 (diff)
downloadffmpeg-streaming-c156420bce9e716cb3759c6e03909de07b1308f5.zip
ffmpeg-streaming-c156420bce9e716cb3759c6e03909de07b1308f5.tar.gz
avcodec/sheervideo: fix prediction for ybyr 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 70fdbd8..aa48a77 100644
--- a/libavcodec/sheervideo.c
+++ b/libavcodec/sheervideo.c
@@ -1222,7 +1222,7 @@ static void decode_ybyr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
dst_v[x / 2] = get_bits(gb, 8);
}
} else {
- int pred[4] = { -125, 128, 128, 0 };
+ int pred[4] = { -128, 128, 128, 0 };
for (x = 0; x < avctx->width; x += 2) {
int y1, y2, u, v;
OpenPOWER on IntegriCloud