mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
api ffmpeg, renamed hls format
This commit is contained in:
@@ -2178,7 +2178,12 @@ bool CStreamRec::Open(CZapitChannel * channel)
|
|||||||
printf("%s: Cannot find stream info [%s]!\n", __FUNCTION__, channel->getUrl().c_str());
|
printf("%s: Cannot find stream info [%s]!\n", __FUNCTION__, channel->getUrl().c_str());
|
||||||
return false;
|
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, "mpegts") &&
|
||||||
!strstr(ifcx->iformat->name, "matroska") &&
|
!strstr(ifcx->iformat->name, "matroska") &&
|
||||||
!strstr(ifcx->iformat->name, "avi") &&
|
!strstr(ifcx->iformat->name, "avi") &&
|
||||||
|
@@ -842,7 +842,12 @@ bool CStreamStream::Open()
|
|||||||
printf("%s: Cannot find stream info [%s]!\n", __FUNCTION__, channel->getUrl().c_str());
|
printf("%s: Cannot find stream info [%s]!\n", __FUNCTION__, channel->getUrl().c_str());
|
||||||
return false;
|
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, "mpegts") &&
|
||||||
!strstr(ifcx->iformat->name, "matroska") &&
|
!strstr(ifcx->iformat->name, "matroska") &&
|
||||||
!strstr(ifcx->iformat->name, "avi") &&
|
!strstr(ifcx->iformat->name, "avi") &&
|
||||||
|
Reference in New Issue
Block a user