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:
wm4 2020-06-17 16:18:07 +02:00
parent b9069c9dbf
commit 6ff20c71ab
1 changed files with 4 additions and 0 deletions

View File

@ -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},