prores: set avtx->pix_fmt based on the fourcc code during init
This commit is contained in:
parent
3d5976c4ae
commit
1d2ae9e9f3
@ -179,6 +179,27 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||
return ret;
|
||||
}
|
||||
|
||||
switch (avctx->codec_tag) {
|
||||
case MKTAG('a', 'p', 'c', 'h'):
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
||||
break;
|
||||
case MKTAG('a', 'p', 'c', 'n'):
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
||||
break;
|
||||
case MKTAG('a', 'p', 'c', 's'):
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
||||
break;
|
||||
case MKTAG('a', 'p', 'c', 'o'):
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV422P10;
|
||||
break;
|
||||
case MKTAG('a', 'p', '4', 'h'):
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV444P10;
|
||||
break;
|
||||
default:
|
||||
av_log(avctx, AV_LOG_WARNING, "Unknown ProRes FOURCC provided (%08X)\n",
|
||||
avctx->codec_tag);
|
||||
}
|
||||
|
||||
ff_init_scantable_permutation(idct_permutation,
|
||||
ctx->prodsp.idct_permutation_type);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user