[FFmpeg-cvslog] avcodec/sheervideo: fix prediction for ybyr format
Paul B Mahol
git at videolan.org
Fri Jun 10 09:54:10 CEST 2016
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jun 10 09:52:38 2016 +0200| [c156420bce9e716cb3759c6e03909de07b1308f5] | committer: Paul B Mahol
avcodec/sheervideo: fix prediction for ybyr format
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c156420bce9e716cb3759c6e03909de07b1308f5
---
libavcodec/sheervideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list