mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
fixup! lavc/rkmppdec: refactor RKMPP decoders and extend codecs
enable some YUVJ formats. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
4ca3b158de
commit
ea8a622db1
1 changed files with 2 additions and 0 deletions
|
|
@ -201,6 +201,7 @@ static av_cold int rkmpp_decode_init(AVCodecContext *avctx)
|
|||
avctx->codec_id == AV_CODEC_ID_AV1;
|
||||
break;
|
||||
case AV_PIX_FMT_YUV422P:
|
||||
case AV_PIX_FMT_YUVJ422P:
|
||||
pix_fmts[1] = AV_PIX_FMT_NV16;
|
||||
is_fmt_supported =
|
||||
avctx->codec_id == AV_CODEC_ID_H264;
|
||||
|
|
@ -211,6 +212,7 @@ static av_cold int rkmpp_decode_init(AVCodecContext *avctx)
|
|||
avctx->codec_id == AV_CODEC_ID_H264;
|
||||
break;
|
||||
case AV_PIX_FMT_YUV444P:
|
||||
case AV_PIX_FMT_YUVJ444P:
|
||||
pix_fmts[1] = AV_PIX_FMT_NV24;
|
||||
is_fmt_supported =
|
||||
avctx->codec_id == AV_CODEC_ID_HEVC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue