From e5f96e98450562d03bf4486073eed6b262dd967f Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 30 Oct 2012 19:32:30 +0100 Subject: fmt-conversion: guard ffmpeg-only pixel format This should fix compilation with libav. --- fmt-conversion.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fmt-conversion.c b/fmt-conversion.c index 9f14565317..81ab7a45fb 100644 --- a/fmt-conversion.c +++ b/fmt-conversion.c @@ -101,7 +101,10 @@ static const struct { {IMGFMT_444P, PIX_FMT_YUVJ444P}, {IMGFMT_440P, PIX_FMT_YUVJ440P}, + // ffmpeg only +#if LIBAVUTIL_VERSION_MICRO >= 100 {IMGFMT_BGR0, PIX_FMT_BGR0}, +#endif {IMGFMT_VDPAU_MPEG1, PIX_FMT_VDPAU_MPEG1}, {IMGFMT_VDPAU_MPEG2, PIX_FMT_VDPAU_MPEG2}, -- cgit v1.2.3