Commit c156420b authored by Paul B Mahol's avatar Paul B Mahol

avcodec/sheervideo: fix prediction for ybyr format

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 0a9e781b
...@@ -1222,7 +1222,7 @@ static void decode_ybyr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb) ...@@ -1222,7 +1222,7 @@ static void decode_ybyr(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, 0 }; int pred[4] = { -128, 128, 128, 0 };
for (x = 0; x < avctx->width; x += 2) { for (x = 0; x < avctx->width; x += 2) {
int y1, y2, u, v; int y1, y2, u, v;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment