mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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;
|
||||
headers += 6;
|
||||
|
||||
if (length % data->pgroup)
|
||||
if (!data->pgroup || length % data->pgroup)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
if (length > payload_len)
|
||||
|
Loading…
Reference in New Issue
Block a user