eplayer fix init tectime aac thx DboxOldie

Origin commit data
------------------
Branch: master
Commit: 8d6a7f8c3e
Author: max_10 <max_10@gmx.de>
Date: 2016-04-03 (Sun, 03 Apr 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2016-04-03 10:44:45 +02:00
parent 462a59c225
commit edfb3c20e4

View File

@@ -428,7 +428,7 @@ again:
avfc->iformat->flags |= AVFMT_SEEK_TO_PTS; avfc->iformat->flags |= AVFMT_SEEK_TO_PTS;
avfc->flags = AVFMT_FLAG_GENPTS; avfc->flags = AVFMT_FLAG_GENPTS;
if (player->noprobe) { if (player->noprobe || player->isHttp) {
#if (LIBAVFORMAT_VERSION_MAJOR < 55) || \ #if (LIBAVFORMAT_VERSION_MAJOR < 55) || \
(LIBAVFORMAT_VERSION_MAJOR == 55 && LIBAVFORMAT_VERSION_MINOR < 43) || \ (LIBAVFORMAT_VERSION_MAJOR == 55 && LIBAVFORMAT_VERSION_MINOR < 43) || \
(LIBAVFORMAT_VERSION_MAJOR == 55 && LIBAVFORMAT_VERSION_MINOR == 43 && LIBAVFORMAT_VERSION_MICRO < 100) (LIBAVFORMAT_VERSION_MAJOR == 55 && LIBAVFORMAT_VERSION_MINOR == 43 && LIBAVFORMAT_VERSION_MICRO < 100)
@@ -439,9 +439,12 @@ again:
avfc->probesize = 131072; avfc->probesize = 131072;
} }
for (unsigned int i = 0; i < avfc->nb_streams; i++) { if (!player->isHttp)
if (avfc->streams[i]->codec->codec_id == AV_CODEC_ID_AAC) {
find_info = false; 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) if (find_info)
err = avformat_find_stream_info(avfc, NULL); err = avformat_find_stream_info(avfc, NULL);