avformat/rtsp: #if unused functions away, fix -O0 compilation
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 6 Jan 2022 18:21:58 +0000 (19:21 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 8 Jan 2022 17:13:04 +0000 (18:13 +0100)
commitaeb5d943c613f50611ca49f5ffbfa8b24820b61d
tree1d7d56c9f7d3b8972a766eb58e92f5196547a924
parenta0d7e41ad7cb69600c1947571e55f08e36aa2e6d
avformat/rtsp: #if unused functions away, fix -O0 compilation

parse_rtsp_message() is only called if the rtsp demuxer is enabled
and so it is normally compiled away if said demuxer is disabled.
Yet this does not happen when compiling with -O0 and this leads
to a linking failure because parse_rtsp_message() calls functions
that may not be available if the rtsp demuxer is disabled.
Fix this by properly #if'ing the unused functions away.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/rtsp.c