api ffmpeg, renamed hls format

Origin commit data
------------------
Commit: 2fea61e3a2
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-07-17 (Wed, 17 Jul 2019)
This commit is contained in:
Jacek Jendrzej
2019-07-17 18:03:59 +02:00
committed by vanhofen
parent 0e9ed041e4
commit 3f3b85bdbe
2 changed files with 12 additions and 2 deletions

View File

@@ -845,7 +845,12 @@ bool CStreamStream::Open()
printf("%s: Cannot find stream info [%s]!\n", __FUNCTION__, channel->getUrl().c_str());
return false;
}
if (!strstr(ifcx->iformat->name, "applehttp") &&
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58,27,102)
const char *hls = "applehttp";
#else
const char *hls = "hls";
#endif
if (!strstr(ifcx->iformat->name, hls) &&
!strstr(ifcx->iformat->name, "mpegts") &&
!strstr(ifcx->iformat->name, "matroska") &&
!strstr(ifcx->iformat->name, "avi") &&