summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_rfc4175.c
diff options
context:
space:
mode:
authorKyle Schwarz <zeranoe@gmail.com>2021-06-26 21:10:43 -0400
committerLynne <dev@lynne.ee>2021-07-06 16:37:59 +0200
commita61d1909729caa9c04cecb3a28efd71bc7f433f8 (patch)
treeb70c369f48ec9bdc558c522373b7737e15f16e2e /libavformat/rtpdec_rfc4175.c
parentb7ba472f43e7f1ab4d4268f4f1cc77d70ae405d7 (diff)
downloadffmpeg-a61d1909729caa9c04cecb3a28efd71bc7f433f8.tar.gz
libavformat/rtpdec_rfc4175: Check for zero pgroup before mod
Signed-off-by: Kyle Schwarz <zeranoe@gmail.com>
Diffstat (limited to 'libavformat/rtpdec_rfc4175.c')
-rw-r--r--libavformat/rtpdec_rfc4175.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c
index e9c62c1389..4daff4da5a 100644
--- a/libavformat/rtpdec_rfc4175.c
+++ b/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)