]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rtsp: add av_assert0() to clarify that the else case is supposed to be unrea...
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Oct 2014 21:48:45 +0000 (23:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Oct 2014 21:48:45 +0000 (23:48 +0200)
If its reachable then theres a bug as err would be uninitialized

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtsp.c

index 1682db88771c7cc89cd0b229284d6c862c01129d..17f14241be050575b3fd8b7a5e9907e2e12d693f 100644 (file)
@@ -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;