video: fix FFmpeg or Libav being a special snowflake

This commit is contained in:
wm4 2014-03-16 16:23:12 +01:00
parent 2963d84a9b
commit 3db3653227
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ static const struct {
{IMGFMT_NV12, AV_PIX_FMT_NV12},
{IMGFMT_NV21, AV_PIX_FMT_NV21},
{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_BE, AV_PIX_FMT_GRAY16BE},
{IMGFMT_410P, AV_PIX_FMT_YUV410P},