From 0ab00a75e41f4399126777e49385c809d8fcc311 Mon Sep 17 00:00:00 2001 From: James Almer Date: Thu, 7 Aug 2014 01:22:48 -0300 Subject: avcodec/raw: add avpriv_get_raw_pix_fmt_tags() Used to expose ff_raw_pix_fmt_tags[] to other libav* libraries Signed-off-by: James Almer Signed-off-by: Michael Niedermayer --- libavcodec/raw.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavcodec/raw.h') diff --git a/libavcodec/raw.h b/libavcodec/raw.h index 18128259ec..a79b8510c1 100644 --- a/libavcodec/raw.h +++ b/libavcodec/raw.h @@ -35,7 +35,13 @@ typedef struct PixelFormatTag { unsigned int fourcc; } PixelFormatTag; +#if LIBAVCODEC_VERSION_MAJOR < 56 extern av_export const PixelFormatTag ff_raw_pix_fmt_tags[]; +#else +extern const PixelFormatTag ff_raw_pix_fmt_tags[]; // exposed through avpriv_get_raw_pix_fmt_tags() +#endif + +const struct PixelFormatTag *avpriv_get_raw_pix_fmt_tags(void); enum AVPixelFormat avpriv_find_pix_fmt(const PixelFormatTag *tags, unsigned int fourcc); -- cgit v1.2.3