[FFmpeg-devel] [PATCH 4/8] avformat/rtpdec_rfc4175: return the proper value

lance.lmwang at gmail.com lance.lmwang at gmail.com
Wed Oct 6 13:14:07 EEST 2021


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavformat/rtpdec_rfc4175.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c
index 97939b0..46d30ed 100644
--- a/libavformat/rtpdec_rfc4175.c
+++ b/libavformat/rtpdec_rfc4175.c
@@ -105,7 +105,7 @@ static int rfc4175_parse_sdp_line(AVFormatContext *s, int st_index,
 
 
         if (!data->sampling || !data->depth || !data->width || !data->height)
-            return -1;
+            return AVERROR(EINVAL);
 
         stream->codecpar->width = data->width;
         stream->codecpar->height = data->height;
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list