From 3ac6db3b5a929ee515b7046778c2db10e9c2fb8b Mon Sep 17 00:00:00 2001 From: max10 Date: Wed, 8 Oct 2014 23:13:26 +0200 Subject: [PATCH] fix commit 3d4245d76df9bb23d2b13c7a01f10b594f81459f --- libeplayer3/input.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libeplayer3/input.cpp b/libeplayer3/input.cpp index b9c6db2..060cb85 100644 --- a/libeplayer3/input.cpp +++ b/libeplayer3/input.cpp @@ -90,8 +90,6 @@ int64_t Input::calcPts(AVStream * stream, int64_t pts) if (pts < 0) return INVALID_PTS_VALUE; - if (pts & 0x8000000000000000ull) - pts = INVALID_PTS_VALUE; return pts; } #endif @@ -680,6 +678,7 @@ bool Input::GetMetadata(std::vector &keys, std::vector if (avfc) { AVDictionaryEntry *tag = NULL; + if (avfc->metadata) while ((tag = av_dict_get(avfc->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) { keys.push_back(tag->key);