build with ffmpeg version > 59.0.100

This commit is contained in:
Jacek Jendrzej
2021-08-28 15:22:23 +02:00
parent d272cc800f
commit ee09213b50
6 changed files with 23 additions and 1 deletions

View File

@@ -54,7 +54,11 @@ private:
size_t buffer_size;
unsigned char *buffer;
AVFormatContext *avc;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59,0,100)
AVCodec *codec;
#else
const AVCodec *codec;
#endif
AVCodecContext *c;
AVIOContext *avioc;
int best_stream;