Message ID | 20210627011043.6336-1-zeranoe@gmail.com |
---|---|
State | Accepted |
Commit | a61d1909729caa9c04cecb3a28efd71bc7f433f8 |
Headers | show |
Series | [FFmpeg-devel] libavformat/rtpdec_rfc4175: Check for zero pgroup before mod | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
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)
Signed-off-by: Kyle Schwarz <zeranoe@gmail.com> --- libavformat/rtpdec_rfc4175.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)