avformat/rtpdec_rfc4175: return the proper value

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2021-07-02 20:02:44 +08:00
parent 5724e8a664
commit 78c30857b7
1 changed files with 1 additions and 1 deletions

View File

@ -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;