diff --git a/libavcodec/sheervideo.c b/libavcodec/sheervideo.c
index e8f008b..9d2da7f 100644
|
a
|
b
|
static void decode_aybri(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
|
| 2185 | 2185 | dst_v[x] = get_bits(gb, 8); |
| 2186 | 2186 | } |
| 2187 | 2187 | } else { |
| 2188 | | int pred[4] = { 125, 125, -128, -128 }; |
| | 2188 | int pred[4] = { 125, s->alt ? 125 : -146, -128, -128 }; |
| 2189 | 2189 | |
| 2190 | 2190 | for (x = 0; x < avctx->width; x++) { |
| 2191 | 2191 | int a, y, u, v; |
| … |
… |
static void decode_aybr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
|
| 2263 | 2263 | dst_v[x] = get_bits(gb, 8); |
| 2264 | 2264 | } |
| 2265 | 2265 | } else { |
| 2266 | | int pred[4] = { 125, 125, -128, -128 }; |
| | 2266 | int pred[4] = { 125, s->alt ? 125 : -146, -128, -128 }; |
| 2267 | 2267 | |
| 2268 | 2268 | for (x = 0; x < avctx->width; x++) { |
| 2269 | 2269 | int a, y, u, v; |
| … |
… |
static int decode_frame(AVCodecContext *avctx,
|
| 2959 | 2959 | } |
| 2960 | 2960 | break; |
| 2961 | 2961 | case MKTAG('A', 'Y', 'B', 'R'): |
| | 2962 | s->alt = 1; |
| 2962 | 2963 | case MKTAG('A', 'Y', 'b', 'R'): |
| 2963 | 2964 | avctx->pix_fmt = AV_PIX_FMT_YUVA444P; |
| 2964 | 2965 | s->decode_frame = decode_aybr; |
| … |
… |
static int decode_frame(AVCodecContext *avctx,
|
| 2968 | 2969 | } |
| 2969 | 2970 | break; |
| 2970 | 2971 | case MKTAG('A', 'y', 'B', 'R'): |
| | 2972 | s->alt = 1; |
| 2971 | 2973 | case MKTAG('A', 'y', 'b', 'R'): |
| 2972 | 2974 | avctx->pix_fmt = AV_PIX_FMT_YUVA444P; |
| 2973 | 2975 | s->decode_frame = decode_aybri; |