changeset 34213:7d93d0f72802

fmt_conversion: surround PIX_FMT_GBR24P by #ifdefs to ensure availability
author diego
date Fri, 04 Nov 2011 15:22:51 +0000
parents 7014a2e64a3d
children ecb63dcc272c
files fmt-conversion.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/fmt-conversion.c	Fri Nov 04 14:29:33 2011 +0000
+++ b/fmt-conversion.c	Fri Nov 04 15:22:51 2011 +0000
@@ -57,7 +57,9 @@
     {IMGFMT_RGB8,    PIX_FMT_BGR8},
     {IMGFMT_RGB4,    PIX_FMT_BGR4},
     {IMGFMT_BGR8,    PIX_FMT_PAL8},
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 20, 1)
     {IMGFMT_GBR24P,  PIX_FMT_GBR24P},
+#endif
     {IMGFMT_YUY2,    PIX_FMT_YUYV422},
     {IMGFMT_UYVY,    PIX_FMT_UYVY422},
     {IMGFMT_NV12,    PIX_FMT_NV12},