avoid using int64_t
This commit is contained in:
@@ -389,10 +389,10 @@ void MovieTexture_AVCodec::DecoderThread()
|
|||||||
{
|
{
|
||||||
if ( GetNextTimestamp )
|
if ( GetNextTimestamp )
|
||||||
{
|
{
|
||||||
int64_t ts = pkt.pts;
|
if (pkt.pts == AV_NOPTS_VALUE)
|
||||||
if (ts == AV_NOPTS_VALUE)
|
CurrentTimestamp = 0;
|
||||||
ts = 0;
|
else
|
||||||
CurrentTimestamp = (float)ts * m_fctx->pts_num / m_fctx->pts_den;
|
CurrentTimestamp = (float)pkt.pts * m_fctx->pts_num / m_fctx->pts_den;
|
||||||
if( CurrentTimestamp != 0 )
|
if( CurrentTimestamp != 0 )
|
||||||
LastGoodTimestamp = CurrentTimestamp;
|
LastGoodTimestamp = CurrentTimestamp;
|
||||||
GetNextTimestamp = false;
|
GetNextTimestamp = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user