Merge commit '09f4822e4eaf61513b9092414450f3ae920ccd9d'

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Derek Buitenhuis 2016-01-27 18:29:21 +00:00
commit 949d6dd51c
1 changed files with 2 additions and 1 deletions

View File

@ -979,7 +979,8 @@ skip:
// if not streamed and no duration from metadata then seek to end to find // if not streamed and no duration from metadata then seek to end to find
// the duration from the timestamps // the duration from the timestamps
if (s->pb->seekable && (!s->duration || s->duration == AV_NOPTS_VALUE) && !flv->searched_for_end) { if (s->pb->seekable && (!s->duration || s->duration == AV_NOPTS_VALUE) &&
!flv->searched_for_end) {
int size; int size;
const int64_t pos = avio_tell(s->pb); const int64_t pos = avio_tell(s->pb);
// Read the last 4 bytes of the file, this should be the size of the // Read the last 4 bytes of the file, this should be the size of the