10l (mplayer doesnt like AV_NOPTS_VALUE)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13748 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2004-10-24 19:17:55 +00:00
parent 92a938dd17
commit b3948a36d1
1 changed files with 4 additions and 3 deletions

View File

@ -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: