[FFmpeg-cvslog] r13902 - trunk/ffserver.c

bcoudurier subversion
Mon Jun 23 05:16:24 CEST 2008


Author: bcoudurier
Date: Mon Jun 23 05:16:24 2008
New Revision: 13902

Log:
fix source stream, source_index is refering to fmt_in, needs testing

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Mon Jun 23 05:16:24 2008
@@ -2168,7 +2168,7 @@ static int http_prepare_data(HTTPContext
                     if (c->is_packetized) {
                         AVStream *st;
                         /* compute send time and duration */
-                        st = c->fmt_in->streams[pkt.stream_index];
+                        st = c->fmt_in->streams[source_index];
                         c->cur_pts = av_rescale_q(pkt.dts, st->time_base, AV_TIME_BASE_Q);
                         if (st->start_time != AV_NOPTS_VALUE)
                             c->cur_pts -= av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q);




More information about the ffmpeg-cvslog mailing list