Signed-off-by: Kyle Schwarz <[email protected]>
---
libavformat/rtpdec_rfc4175.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.31.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".