mirror of https://git.ffmpeg.org/ffmpeg.git
libavformat/rtpdec_rfc4175: Check for zero pgroup before mod
Signed-off-by: Kyle Schwarz <zeranoe@gmail.com>
This commit is contained in:
parent
b7ba472f43
commit
a61d190972
|
@ -199,7 +199,7 @@ static int rfc4175_handle_packet(AVFormatContext *ctx, PayloadContext *data,
|
||||||
cont = headers[4] & 0x80;
|
cont = headers[4] & 0x80;
|
||||||
headers += 6;
|
headers += 6;
|
||||||
|
|
||||||
if (length % data->pgroup)
|
if (!data->pgroup || length % data->pgroup)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
if (length > payload_len)
|
if (length > payload_len)
|
||||||
|
|
Loading…
Reference in New Issue