diff options
author | Andriy Gelman <andriy.gelman@gmail.com> | 2020-10-12 16:36:08 -0400 |
---|---|---|
committer | Andriy Gelman <andriy.gelman@gmail.com> | 2020-11-21 10:15:46 -0500 |
commit | 78537aa52f03f9fcf1f278c8bb8cc30ee1a64d38 (patch) | |
tree | caf80794008edb919b0d254b26cf5b43cd089a42 /libavformat/rtsp.c | |
parent | 9a70b6f5b84cf98cb7012ca3b5adc5f28f0f50bf (diff) | |
download | ffmpeg-78537aa52f03f9fcf1f278c8bb8cc30ee1a64d38.tar.gz |
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@martin.st>
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |