mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-23 03:02:53 +01:00
cellVdec: (experimental) allow AV_PIX_FMT_YUVJ420P
This commit is contained in:
parent
9a27cc9442
commit
5ef3465f65
@ -696,8 +696,11 @@ error_code cellVdecGetPicture(u32 handle, vm::cptr<CellVdecPicFormat> format, vm
|
||||
|
||||
switch (frame->format)
|
||||
{
|
||||
case AV_PIX_FMT_YUV420P: in_f = alpha_plane ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P; break;
|
||||
|
||||
case AV_PIX_FMT_YUVJ420P:
|
||||
cellVdec.error("cellVdecGetPicture(): experimental AVPixelFormat (%d). This may cause suboptimal video quality.", frame->format);
|
||||
case AV_PIX_FMT_YUV420P:
|
||||
in_f = alpha_plane ? AV_PIX_FMT_YUVA420P : static_cast<AVPixelFormat>(frame->format);
|
||||
break;
|
||||
default:
|
||||
{
|
||||
fmt::throw_exception("Unknown format (%d)" HERE, frame->format);
|
||||
|
Loading…
Reference in New Issue
Block a user