mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 07:22:44 +02:00
libeplayer3: optimizations (untested)
Origin commit data
------------------
Branch: master
Commit: 2289de62e8
Author: martii <m4rtii@gmx.de>
Date: 2014-04-15 (Tue, 15 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -59,19 +59,14 @@ Input::~Input()
|
||||
|
||||
int64_t calcPts(AVFormatContext *avfc, AVStream * stream, int64_t pts)
|
||||
{
|
||||
if (!avfc || !stream) {
|
||||
fprintf(stderr, "context / stream null\n");
|
||||
return INVALID_PTS_VALUE;
|
||||
}
|
||||
|
||||
if (pts == AV_NOPTS_VALUE)
|
||||
return INVALID_PTS_VALUE;
|
||||
|
||||
pts = 90000 * pts * stream->time_base.num / stream->time_base.den;
|
||||
if (avfc->start_time != AV_NOPTS_VALUE)
|
||||
pts -= 90000.0 * avfc->start_time / AV_TIME_BASE;
|
||||
pts -= 90000 * avfc->start_time / AV_TIME_BASE;
|
||||
|
||||
if (pts & 0x8000000000000000ll)
|
||||
if (pts < 0)
|
||||
return INVALID_PTS_VALUE;
|
||||
|
||||
return pts;
|
||||
|
Reference in New Issue
Block a user