mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
video: alias IMGFMT_RGB30 to AV_PIX_FMT_X2RGB10
IMGFMT_RGB30 was added first; FFmpeg added AV_PIX_FMT_X2RGB10 later. This is exactly the same, so treat them as such. For some reason, libswscale still seems to output incompatible data - not sure what this is about, but I'm not going to debug it.
This commit is contained in:
parent
b9069c9dbf
commit
6ff20c71ab
@ -53,6 +53,10 @@ static const struct {
|
||||
|
||||
{IMGFMT_RGBA64, AV_PIX_FMT_RGBA64},
|
||||
|
||||
#ifdef AV_PIX_FMT_X2RGB10
|
||||
{IMGFMT_RGB30, AV_PIX_FMT_X2RGB10},
|
||||
#endif
|
||||
|
||||
{IMGFMT_VDPAU, AV_PIX_FMT_VDPAU},
|
||||
{IMGFMT_VIDEOTOOLBOX, AV_PIX_FMT_VIDEOTOOLBOX},
|
||||
{IMGFMT_MEDIACODEC, AV_PIX_FMT_MEDIACODEC},
|
||||
|
Loading…
Reference in New Issue
Block a user