[FFmpeg-devel] [PATCH] ffserver crash when non-existent url is selected

Luca Abeni lucabe72
Mon Sep 17 10:02:37 CEST 2007


Hi all,

I just noticed that ffserver is crashing if I try to play an rtsp url 
that does not exist in the configure file. It looks like the bug has 
been introduced in r10474 ("rtp and rtsp demuxer declarations are not 
part of public API"), and the problem is in this change:
@@ -2683,7 +2683,7 @@
          path++;

      for(stream = first_stream; stream != NULL; stream = stream->next) {
-        if (!stream->is_feed && stream->fmt == &rtp_muxer &&
+        if (!stream->is_feed && !strcmp(stream->fmt->name, "rtp") &&
              !strcmp(path, stream->filename)) {
              goto found;
          }
The fact is that stream->fmt can be NULL... The attached patch fixes the 
problem.


			Thanks,
				Luca
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-ffserver-crash.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070917/5a9c75b5/attachment.txt>



More information about the ffmpeg-devel mailing list