From 23413263523d557474ef1f1308393c35a3d5f55b Mon Sep 17 00:00:00 2001 From: max_10 Date: Mon, 24 Nov 2014 11:07:36 +0100 Subject: [PATCH] Revert "fix commit 88a4587b978199084e1280c29ded57788c0dc83b" This reverts commit 728404f4cd4fc932398a605e9a96fa1000863e6d. Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/4dc3ce3bd17172215dcdc4d3cada2c6401199a9b Author: max_10 Date: 2014-11-24 (Mon, 24 Nov 2014) ------------------ This commit was generated by Migit --- libeplayer3/input.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libeplayer3/input.cpp b/libeplayer3/input.cpp index 060cb85..b9c6db2 100644 --- a/libeplayer3/input.cpp +++ b/libeplayer3/input.cpp @@ -90,6 +90,8 @@ 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 @@ -678,7 +680,6 @@ 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);