[MPlayer-cvslog] r23975 - trunk/libmpdemux/muxer_lavf.c
michael
subversion at mplayerhq.hu
Tue Jul 31 19:24:54 CEST 2007
Author: michael
Date: Tue Jul 31 19:24:53 2007
New Revision: 23975
Log:
make muxer store the provided timestamps
Modified:
trunk/libmpdemux/muxer_lavf.c
Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c (original)
+++ trunk/libmpdemux/muxer_lavf.c Tue Jul 31 19:24:53 2007
@@ -280,10 +280,9 @@ static void write_chunk(muxer_stream_t *
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)
More information about the MPlayer-cvslog
mailing list