diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-31 17:24:53 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-31 17:24:53 +0000 |
commit | 8067c7b5ca591ac9f3a59ff88b2fd838fe9f5d7a (patch) | |
tree | 33e5f15c112df2591312063c207f2af1fe608098 /libmpdemux/muxer_lavf.c | |
parent | 96f2f7d45f225491a4ca9224325c260fe324d5e9 (diff) | |
download | mpv-8067c7b5ca591ac9f3a59ff88b2fd838fe9f5d7a.tar.bz2 mpv-8067c7b5ca591ac9f3a59ff88b2fd838fe9f5d7a.tar.xz |
make muxer store the provided timestamps
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23975 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/muxer_lavf.c')
-rw-r--r-- | libmpdemux/muxer_lavf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmpdemux/muxer_lavf.c b/libmpdemux/muxer_lavf.c index 8441b88bb8..49e328a0de 100644 --- a/libmpdemux/muxer_lavf.c +++ b/libmpdemux/muxer_lavf.c @@ -280,10 +280,9 @@ static void write_chunk(muxer_stream_t *stream, size_t len, unsigned int flags, pkt.flags |= PKT_FLAG_KEY; else pkt.flags = 0; - - - //pkt.pts = AV_NOPTS_VALUE; - pkt.pts = (stream->timer / av_q2d(priv->oc->streams[pkt.stream_index]->time_base) + 0.5); + + pkt.dts = (dts / av_q2d(priv->oc->streams[pkt.stream_index]->time_base) + 0.5); + pkt.pts = (pts / av_q2d(priv->oc->streams[pkt.stream_index]->time_base) + 0.5); //fprintf(stderr, "%Ld %Ld id:%d tb:%f %f\n", pkt.dts, pkt.pts, pkt.stream_index, av_q2d(priv->oc->streams[pkt.stream_index]->time_base), stream->timer); if(av_interleaved_write_frame(priv->oc, &pkt) != 0) //av_write_frame(priv->oc, &pkt) |