summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-12-06 10:37:08 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-12-07 20:33:17 +0800
commit6d42af02f566c2a14a72bc13517add071c1d2a2b (patch)
treeb1ba567a303720c45d1f553e42bc28068882dee6 /libavformat/rtsp.h
parentf210766a55ea2db85b01038e0f4a4b8891d1903b (diff)
avformat/rtsp: add error code handling for ff_rtsp_skip_packet()
Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r--libavformat/rtsp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index d6fdfe069c..8b64e29d70 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -560,8 +560,10 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
/**
* Skip a RTP/TCP interleaved packet.
+ *
+ * @return 0 on success, < 0 on failure.
*/
-void ff_rtsp_skip_packet(AVFormatContext *s);
+int ff_rtsp_skip_packet(AVFormatContext *s);
/**
* Connect to the RTSP server and set up the individual media streams.