ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Oct 23 
23:48:45 2014 +0200| [7f2af3f56b3d69149b18e062664582c858631791] | committer: 
Michael Niedermayer

avformat/rtsp: add av_assert0() to clarify that the else case is supposed to be 
unreachable

If its reachable then theres a bug as err would be uninitialized

Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f2af3f56b3d69149b18e062664582c858631791
---

 libavformat/rtsp.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 1682db8..17f1424 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1797,6 +1797,8 @@ redirect:
         err = ff_rtsp_setup_input_streams(s, reply);
     else if (CONFIG_RTSP_MUXER)
         err = ff_rtsp_setup_output_streams(s, host);
+    else
+        av_assert0(0);
     if (err)
         goto fail;
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to