diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-12-06 10:37:08 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-12-07 20:33:17 +0800 |
commit | 6d42af02f566c2a14a72bc13517add071c1d2a2b (patch) | |
tree | b1ba567a303720c45d1f553e42bc28068882dee6 /libavformat/rtsp.h | |
parent | f210766a55ea2db85b01038e0f4a4b8891d1903b (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.h | 4 |
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. |