mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
500 B
25 lines
500 B
8 years ago
|
#include <stdlib.h>
|
||
|
|
||
|
extern "C" {
|
||
|
#include <libavformat/avformat.h>
|
||
|
#include <libavcodec/avcodec.h>
|
||
|
#include <libswscale/swscale.h>
|
||
|
}
|
||
|
|
||
|
#define CALC_FFMPEG_VERSION(a,b,c) ( a<<16 | b<<8 | c )
|
||
|
|
||
|
static void test()
|
||
|
{
|
||
|
AVFormatContext* c = 0;
|
||
|
AVCodec* avcodec = 0;
|
||
|
AVFrame* frame = 0;
|
||
|
|
||
|
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 0)
|
||
|
int err = avformat_open_input(&c, "", NULL, NULL);
|
||
|
#else
|
||
|
int err = av_open_input_file(&c, "", NULL, 0, NULL);
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
int main() { test(); return 0; }
|