diff options
author | 2004-10-24 19:17:55 +0000 | |
---|---|---|
committer | 2004-10-24 19:17:55 +0000 | |
commit | b3948a36d136c0f1d79965f98d87205137401cd6 (patch) | |
tree | 550ed082de5aa0bce0ac5c462c2b6ca6fbd267a6 /libmpdemux | |
parent | 92a938dd17263d9a6fedd2a917cdaf9e3ac36920 (diff) |
10l (mplayer doesnt like AV_NOPTS_VALUE)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13748 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_lavf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index 2b2aa9f343..7722f597de 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -309,9 +309,10 @@ int demux_lavf_fill_buffer(demuxer_t *demux){ av_free_packet(&pkt); } - priv->last_pts= pkt.pts; - - dp->pts=pkt.pts / (float)AV_TIME_BASE; + if(pkt.pts != AV_NOPTS_VALUE){ + priv->last_pts= pkt.pts; + dp->pts=pkt.pts / (float)AV_TIME_BASE; + } dp->pos=demux->filepos; dp->flags= !!(pkt.flags&PKT_FLAG_KEY); // append packet to DS stream: |