[FFmpeg-cvslog] avformat/rtsp: set return variable in error path
Andriy Gelman
git at videolan.org
Sat Nov 21 18:23:08 EET 2020
ffmpeg | branch: master | Andriy Gelman <andriy.gelman at gmail.com> | Mon Oct 12 16:36:08 2020 -0400| [78537aa52f03f9fcf1f278c8bb8cc30ee1a64d38] | committer: Andriy Gelman
avformat/rtsp: set return variable in error path
In this error path ret still stores the number of bytes read in
ffurl_read().
Reviewed-by: Martin Storsjö <martin at martin.st>
Signed-off-by: Andriy Gelman <andriy.gelman at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78537aa52f03f9fcf1f278c8bb8cc30ee1a64d38
---
libavformat/rtsp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index d9832bbf1f..b0631c7abf 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2493,6 +2493,7 @@ static int rtp_read_header(AVFormatContext *s)
av_log(s, AV_LOG_ERROR, "Unable to receive RTP payload type %d "
"without an SDP file describing it\n",
payload_type);
+ ret = AVERROR_INVALIDDATA;
goto fail;
}
if (par->codec_type != AVMEDIA_TYPE_DATA) {
More information about the ffmpeg-cvslog
mailing list