From 7f2af3f56b3d69149b18e062664582c858631791 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 23 Oct 2014 23:48:45 +0200 Subject: [PATCH] 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 --- libavformat/rtsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 1682db88771..17f14241be0 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; -- 2.39.5