[Ffmpeg-cvslog] r8111 - trunk/ffserver.c

alex subversion
Sat Feb 24 03:28:28 CET 2007


Author: alex
Date: Sat Feb 24 03:28:28 2007
New Revision: 8111

Modified:
   trunk/ffserver.c

Log:
rescale pts/dts for output format

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sat Feb 24 03:28:28 2007
@@ -2175,6 +2175,14 @@
                             /* XXX: potential leak */
                             return -1;
                         }
+                        if (pkt.dts != AV_NOPTS_VALUE)
+                            pkt.dts = av_rescale_q(pkt.dts,
+                                c->fmt_in->streams[pkt.stream_index]->time_base,
+                                ctx->streams[pkt.stream_index]->time_base);
+                        if (pkt.pts != AV_NOPTS_VALUE)
+                            pkt.pts = av_rescale_q(pkt.pts,
+                                c->fmt_in->streams[pkt.stream_index]->time_base,
+                                ctx->streams[pkt.stream_index]->time_base);
                         if (av_write_frame(ctx, &pkt)) {
                             c->state = HTTPSTATE_SEND_DATA_TRAILER;
                         }




More information about the ffmpeg-cvslog mailing list