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