[FFmpeg-devel] [PATCH] ffserver rtsp bug fixes

Martin Storsjö martin
Mon May 24 22:10:55 CEST 2010


On Mon, 17 May 2010, Howard Chu wrote:

> > @@ -2342,7 +2346,7 @@
> >                          }
> >                      }
> >                      for(i=0;i<c->stream->nb_streams;i++) {
> > -                        if (c->feed_streams[i] == pkt.stream_index) {
> > +                        if (c->stream->feed_streams[i] == pkt.stream_index)
> > {
> >                              AVStream *st =
> > c->fmt_in->streams[source_index];
> >                              pkt.stream_index = i;
> >                              if (pkt.flags & AV_PKT_FLAG_KEY &&
> 
> With everything else fixed, streaming was only working for streams with a
> single track - audio-only or video-only. The problem in this test is that
> c->feed_streams[] is always zero-filled because c is a single RTP stream and
> RTP streams only ever carry one channel. You need to use c->stream which
> actually carries the information about all of the related channels for the
> overall stream. This patch gets audio+video working.

Applied this chunk, feel free to revert/flame/whatever if this is wrong.

// Martin



More information about the ffmpeg-devel mailing list