mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
eplayer fix init tectime aac thx DboxOldie
This commit is contained in:
@@ -428,7 +428,7 @@ again:
|
||||
|
||||
avfc->iformat->flags |= AVFMT_SEEK_TO_PTS;
|
||||
avfc->flags = AVFMT_FLAG_GENPTS;
|
||||
if (player->noprobe) {
|
||||
if (player->noprobe || player->isHttp) {
|
||||
#if (LIBAVFORMAT_VERSION_MAJOR < 55) || \
|
||||
(LIBAVFORMAT_VERSION_MAJOR == 55 && LIBAVFORMAT_VERSION_MINOR < 43) || \
|
||||
(LIBAVFORMAT_VERSION_MAJOR == 55 && LIBAVFORMAT_VERSION_MINOR == 43 && LIBAVFORMAT_VERSION_MICRO < 100)
|
||||
@@ -439,9 +439,12 @@ again:
|
||||
avfc->probesize = 131072;
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < avfc->nb_streams; i++) {
|
||||
if (avfc->streams[i]->codec->codec_id == AV_CODEC_ID_AAC)
|
||||
find_info = false;
|
||||
if (!player->isHttp)
|
||||
{
|
||||
for (unsigned int i = 0; i < avfc->nb_streams; i++) {
|
||||
if (avfc->streams[i]->codec->codec_id == AV_CODEC_ID_AAC)
|
||||
find_info = false;
|
||||
}
|
||||
}
|
||||
if (find_info)
|
||||
err = avformat_find_stream_info(avfc, NULL);
|
||||
|
Reference in New Issue
Block a user