summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-30 19:32:30 +0100
committerwm4 <wm4@nowhere>2012-10-30 20:13:28 +0100
commite5f96e98450562d03bf4486073eed6b262dd967f (patch)
tree23c31b734002a56b79878ba93dd4873df36411c7
parenta42aae3bf82688c753cfe46fb5b76589879f5ac0 (diff)
downloadmpv-e5f96e98450562d03bf4486073eed6b262dd967f.tar.bz2
mpv-e5f96e98450562d03bf4486073eed6b262dd967f.tar.xz
fmt-conversion: guard ffmpeg-only pixel format
This should fix compilation with libav.
-rw-r--r--fmt-conversion.c3
1 files changed, 3 insertions, 0 deletions
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},