aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-06-10 13:04:29 +0200
committerPaul B Mahol <onemda@gmail.com>2016-06-10 17:17:12 +0200
commitf0e7b0645335c040dda613ddb6dd2e20a436dbb6 (patch)
tree4d374784d5d87554bc75ba4456d6d299d30c76cf
parent9d30690f20343ed3057fe4abf82009598d320ce5 (diff)
downloadffmpeg-f0e7b0645335c040dda613ddb6dd2e20a436dbb6.tar.gz
avcodec/sheervideo: fix argx format support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/sheervideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/sheervideo.c b/libavcodec/sheervideo.c
index 73045483a7..bbbdb83f28 100644
--- a/libavcodec/sheervideo.c
+++ b/libavcodec/sheervideo.c
@@ -1990,7 +1990,7 @@ static void decode_argx(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
dst_b[x] = get_bits(gb, 10);
}
} else {
- int pred[4] = { 512, 512, 512, 0 };
+ int pred[4] = { 512, 512, 512, 512 };
for (x = 0; x < avctx->width; x++) {
int r, g, b, a;
@@ -2463,7 +2463,7 @@ static int decode_frame(AVCodecContext *avctx,
}
break;
case MKTAG('A', 'R', 'G', 'X'):
- avctx->pix_fmt = AV_PIX_FMT_GBRAP12;
+ avctx->pix_fmt = AV_PIX_FMT_GBRAP10;
s->decode_frame = decode_argx;
if (s->format != format) {
build_vlc(&s->vlc[0], l_r_rgbx, 1024);