mirror of
https://github.com/opencv/opencv.git
synced 2025-07-25 22:57:53 +08:00
Fix ffmpeg detection with -D OPENCV_WARNINGS_ARE_ERRORS=ON option.
This commit is contained in:
parent
e5aa213554
commit
921f06eb6f
@ -15,12 +15,15 @@ static void test()
|
|||||||
AVFormatContext* c = 0;
|
AVFormatContext* c = 0;
|
||||||
AVCodec* avcodec = 0;
|
AVCodec* avcodec = 0;
|
||||||
AVFrame* frame = 0;
|
AVFrame* frame = 0;
|
||||||
|
(void)avcodec;
|
||||||
|
(void)frame;
|
||||||
|
|
||||||
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 0)
|
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 0)
|
||||||
int err = avformat_open_input(&c, "", NULL, NULL);
|
int err = avformat_open_input(&c, "", NULL, NULL);
|
||||||
#else
|
#else
|
||||||
int err = av_open_input_file(&c, "", NULL, 0, NULL);
|
int err = av_open_input_file(&c, "", NULL, 0, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
(void)err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() { test(); return 0; }
|
int main() { test(); return 0; }
|
||||||
|
Loading…
Reference in New Issue
Block a user