You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avcodec/sheervideo: fix argx format support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@ -1990,7 +1990,7 @@ static void decode_argx(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
|
|||||||
dst_b[x] = get_bits(gb, 10);
|
dst_b[x] = get_bits(gb, 10);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int pred[4] = { 512, 512, 512, 0 };
|
int pred[4] = { 512, 512, 512, 512 };
|
||||||
|
|
||||||
for (x = 0; x < avctx->width; x++) {
|
for (x = 0; x < avctx->width; x++) {
|
||||||
int r, g, b, a;
|
int r, g, b, a;
|
||||||
@ -2463,7 +2463,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MKTAG('A', 'R', 'G', 'X'):
|
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;
|
s->decode_frame = decode_argx;
|
||||||
if (s->format != format) {
|
if (s->format != format) {
|
||||||
build_vlc(&s->vlc[0], l_r_rgbx, 1024);
|
build_vlc(&s->vlc[0], l_r_rgbx, 1024);
|
||||||
|
Reference in New Issue
Block a user