mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/huffyuvdec: use RGB0 for 24bit rgb output instead of BGRA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1355cafcb6
commit
9bb1af8f36
|
@ -361,14 +361,17 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||||
s->yuv = 1;
|
s->yuv = 1;
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
case 32:
|
|
||||||
if (s->bgr32) {
|
if (s->bgr32) {
|
||||||
avctx->pix_fmt = AV_PIX_FMT_RGB32;
|
avctx->pix_fmt = AV_PIX_FMT_0RGB32;
|
||||||
s->alpha = 1;
|
|
||||||
} else {
|
} else {
|
||||||
avctx->pix_fmt = AV_PIX_FMT_BGR24;
|
avctx->pix_fmt = AV_PIX_FMT_BGR24;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 32:
|
||||||
|
av_assert0(s->bgr32);
|
||||||
|
avctx->pix_fmt = AV_PIX_FMT_RGB32;
|
||||||
|
s->alpha = 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue