[FFmpeg-cvslog] avformat/rtpdec_rfc4175: return the proper value

Limin Wang git at videolan.org
Mon Oct 11 19:20:48 EEST 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Fri Jul  2 20:02:44 2021 +0800| [78c30857b7c7a80ac7ff32fbb4453989e926a8c7] | committer: Limin Wang

avformat/rtpdec_rfc4175: return the proper value

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78c30857b7c7a80ac7ff32fbb4453989e926a8c7
---

 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 97939b0fae..712c6830f9 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;



More information about the ffmpeg-cvslog mailing list