aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-23 23:48:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-23 23:48:45 +0200
commit7f2af3f56b3d69149b18e062664582c858631791 (patch)
tree5aff41c1dd406cf66fbbf2e4835239df195f646f
parent20aac40571a51aa5c32dc15958a73a23158986e2 (diff)
downloadffmpeg-7f2af3f56b3d69149b18e062664582c858631791.tar.gz
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@gmx.at>
-rw-r--r--libavformat/rtsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 1682db8877..17f14241be 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;