Skip to content

Commit

Permalink
fix wrong version check for av_frame_get_colorspace
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed May 31, 2015
1 parent 61eedee commit 0e0cfce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AVCompat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const AVPixFmtDescriptor *av_pix_fmt_desc_get(AVPixelFormat pix_fmt)
return &av_pix_fmt_descriptors[pix_fmt];
}
#endif // !AV_MODULE_CHECK(LIBAVUTIL, 52, 3, 0, 13, 100)
#if !FFMPEG_MODULE_CHECK(LIBAVUTIL, 52, 28, 101)
#if !FFMPEG_MODULE_CHECK(LIBAVUTIL, 52, 48, 101)
enum AVColorSpace av_frame_get_colorspace(const AVFrame *frame)
{
if (!frame)
Expand Down
2 changes: 1 addition & 1 deletion src/QtAV/private/AVCompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ typedef enum AVPixelFormat AVPixelFormat;
#if !AV_MODULE_CHECK(LIBAVUTIL, 52, 3, 0, 13, 100)
const AVPixFmtDescriptor *av_pix_fmt_desc_get(AVPixelFormat pix_fmt);
#endif // !AV_MODULE_CHECK(LIBAVUTIL, 52, 3, 0, 13, 100)
#if !FFMPEG_MODULE_CHECK(LIBAVUTIL, 52, 28, 101)
#if !FFMPEG_MODULE_CHECK(LIBAVUTIL, 52, 48, 101) // since ffmpeg2.1
enum AVColorSpace av_frame_get_colorspace(const AVFrame *frame);
#endif
/*
Expand Down

0 comments on commit 0e0cfce

Please sign in to comment.