1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avcodec/sheervideo: fix predictions for c82p format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol
2016-06-10 00:24:30 +02:00
parent 765703498a
commit 0a9e781b88

View File

@@ -1123,7 +1123,7 @@ static void decode_c82p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
dst_v[x / 2] = get_bits(gb, 8); dst_v[x / 2] = get_bits(gb, 8);
} }
} else { } else {
int pred[4] = { -125, 128, 128, 125 }; int pred[4] = { 125, -128, -128, 125 };
for (x = 0; x < avctx->width; x += 2) { for (x = 0; x < avctx->width; x += 2) {
int y1, y2, u, v, a1, a2; int y1, y2, u, v, a1, a2;