[FFmpeg-cvslog] avformat/rtsp: add av_assert0() to clarify that the else case is supposed to be unreachable

Michael Niedermayer git at videolan.org
Fri Oct 24 00:00:30 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | 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 <michaelni at gmx.at>

> 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;
 



More information about the ffmpeg-cvslog mailing list