summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-07-02 20:02:44 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-10-11 23:27:27 +0800
commit78c30857b7c7a80ac7ff32fbb4453989e926a8c7 (patch)
tree8dc83c765fbb14b32c49e4c0e758319c14400f0a /libavformat
parent5724e8a664aa0653b0b691dbd24c47e55f60c62f (diff)
avformat/rtpdec_rfc4175: return the proper value
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtpdec_rfc4175.c2
1 files changed, 1 insertions, 1 deletions
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;