mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
lavc/rscc: Fix colourspace for codec_tag RSCC.
This commit is contained in:
parent
16195aad75
commit
f5074dd39c
@ -80,7 +80,11 @@ static av_cold int rscc_init(AVCodecContext *avctx)
|
||||
if (!ctx->reference)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
avctx->pix_fmt = AV_PIX_FMT_BGRA;
|
||||
if (avctx->codec_tag == MKTAG('I','S','C','C')) {
|
||||
avctx->pix_fmt = AV_PIX_FMT_BGRA;
|
||||
} else {
|
||||
avctx->pix_fmt = AV_PIX_FMT_BGR0;
|
||||
}
|
||||
|
||||
/* Store the value to check for keyframes */
|
||||
ctx->inflated_size = avctx->width * avctx->height * 4;
|
||||
|
Loading…
Reference in New Issue
Block a user