libavformat/rtpdec_rfc4175: Check for zero pgroup before mod

Signed-off-by: Kyle Schwarz <zeranoe@gmail.com>
pull/359/head
Kyle Schwarz 3 years ago committed by Lynne
parent b7ba472f43
commit a61d190972
  1. 2
      libavformat/rtpdec_rfc4175.c

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

Loading…
Cancel
Save