1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 04:58:06 +00:00

fmt-conversion: guard ffmpeg-only pixel format

This should fix compilation with libav.
This commit is contained in:
wm4 2012-10-30 19:32:30 +01:00
parent a42aae3bf8
commit e5f96e9845

View File

@ -101,7 +101,10 @@ static const struct {
{IMGFMT_444P, PIX_FMT_YUVJ444P}, {IMGFMT_444P, PIX_FMT_YUVJ444P},
{IMGFMT_440P, PIX_FMT_YUVJ440P}, {IMGFMT_440P, PIX_FMT_YUVJ440P},
// ffmpeg only
#if LIBAVUTIL_VERSION_MICRO >= 100
{IMGFMT_BGR0, PIX_FMT_BGR0}, {IMGFMT_BGR0, PIX_FMT_BGR0},
#endif
{IMGFMT_VDPAU_MPEG1, PIX_FMT_VDPAU_MPEG1}, {IMGFMT_VDPAU_MPEG1, PIX_FMT_VDPAU_MPEG1},
{IMGFMT_VDPAU_MPEG2, PIX_FMT_VDPAU_MPEG2}, {IMGFMT_VDPAU_MPEG2, PIX_FMT_VDPAU_MPEG2},