avoid using int64_t

This commit is contained in:
Glenn Maynard
2003-09-02 00:40:28 +00:00
parent d1db9209eb
commit 0440cddcca
@@ -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;