mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -66,6 +66,7 @@
|
||||
|
||||
extern "C" {
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavcodec/bsf.h>
|
||||
}
|
||||
|
||||
#if (LIBAVCODEC_VERSION_MAJOR > 55)
|
||||
@@ -2336,7 +2337,11 @@ bool CStreamRec::Open(CZapitChannel * channel)
|
||||
#endif
|
||||
|
||||
std::string tsfile = std::string(filename) + ".ts";
|
||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59,0,100)
|
||||
AVOutputFormat *ofmt = av_guess_format(NULL, tsfile.c_str(), NULL);
|
||||
#else
|
||||
const AVOutputFormat *ofmt = av_guess_format(NULL, tsfile.c_str(), NULL);
|
||||
#endif
|
||||
if (ofmt == NULL) {
|
||||
printf("%s: av_guess_format for [%s] failed!\n", __FUNCTION__, tsfile.c_str());
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user