# HG changeset patch # User diego # Date 1320420171 0 # Node ID 7d93d0f728029a677d34370b7428d4eb5a328114 # Parent 7014a2e64a3d823107efa83fe3f6608fbf53d664 fmt_conversion: surround PIX_FMT_GBR24P by #ifdefs to ensure availability diff -r 7014a2e64a3d -r 7d93d0f72802 fmt-conversion.c --- 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},