mirror of https://github.com/mpv-player/mpv
video: fix FFmpeg or Libav being a special snowflake
This commit is contained in:
parent
2963d84a9b
commit
3db3653227
|
@ -67,7 +67,8 @@ static const struct {
|
||||||
{IMGFMT_NV12, AV_PIX_FMT_NV12},
|
{IMGFMT_NV12, AV_PIX_FMT_NV12},
|
||||||
{IMGFMT_NV21, AV_PIX_FMT_NV21},
|
{IMGFMT_NV21, AV_PIX_FMT_NV21},
|
||||||
{IMGFMT_Y8, AV_PIX_FMT_GRAY8},
|
{IMGFMT_Y8, AV_PIX_FMT_GRAY8},
|
||||||
{IMGFMT_YA8, AV_PIX_FMT_GRAY8A},
|
// FFmpeg prefers AV_PIX_FMT_GRAY8A, but Libav has only Y400A
|
||||||
|
{IMGFMT_YA8, AV_PIX_FMT_Y400A},
|
||||||
{IMGFMT_Y16_LE, AV_PIX_FMT_GRAY16LE},
|
{IMGFMT_Y16_LE, AV_PIX_FMT_GRAY16LE},
|
||||||
{IMGFMT_Y16_BE, AV_PIX_FMT_GRAY16BE},
|
{IMGFMT_Y16_BE, AV_PIX_FMT_GRAY16BE},
|
||||||
{IMGFMT_410P, AV_PIX_FMT_YUV410P},
|
{IMGFMT_410P, AV_PIX_FMT_YUV410P},
|
||||||
|
|
Loading…
Reference in New Issue