You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
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>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user