libavformat/rtpdec_rfc4175: Check for zero pgroup before mod

Signed-off-by: Kyle Schwarz <zeranoe@gmail.com>
This commit is contained in:
Kyle Schwarz 2021-06-26 21:10:43 -04:00 committed by Lynne
parent b7ba472f43
commit a61d190972

View File

@ -199,7 +199,7 @@ static int rfc4175_handle_packet(AVFormatContext *ctx, PayloadContext *data,
cont = headers[4] & 0x80;
headers += 6;
if (length % data->pgroup)
if (!data->pgroup || length % data->pgroup)
return AVERROR_INVALIDDATA;
if (length > payload_len)