mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/rtpdec_rfc4175: return the proper value
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
5724e8a664
commit
78c30857b7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue