build with ffmpeg version > 59.0.100

Origin commit data
------------------
Commit: 343c8455b6
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-08-28 (Sat, 28 Aug 2021)
This commit is contained in:
Jacek Jendrzej
2021-08-28 15:22:23 +02:00
committed by vanhofen
parent dd9eb94175
commit 978c844fd8
6 changed files with 23 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
/*
Neutrino-GUI - DBoxII-Project
@@ -44,6 +46,7 @@ extern "C" {
#include <libavutil/opt.h>
#include <libavutil/samplefmt.h>
#include <libswresample/swresample.h>
#include <libavcodec/avcodec.h>
}
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 28, 1)
@@ -164,7 +167,11 @@ bool CFfmpegDec::Init(void *_in, const CFile::FileType /*ft*/)
return false;
}
avc->pb = avioc;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59,0,100)
avc->flags |= AVFMT_FLAG_CUSTOM_IO|AVFMT_FLAG_KEEP_SIDE_DATA;
#else
avc->flags |= AVFMT_FLAG_CUSTOM_IO;
#endif
AVInputFormat *input_format = NULL;