From 8eb8ecfcaca3c690ee490cfff0fff02d835eecd1 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 28 Jun 2021 14:42:00 +0200 Subject: [PATCH] Fixed 711eb170 --- src/rtp/video_decoders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtp/video_decoders.cpp b/src/rtp/video_decoders.cpp index 040d84789..c6b5ac310 100644 --- a/src/rtp/video_decoders.cpp +++ b/src/rtp/video_decoders.cpp @@ -1793,7 +1793,7 @@ int decode_video_frame(struct coded_data *cdata, void *decoder_data, struct pbuf frame->tiles[substream].data = (char *) malloc(buffer_length + PADDING); } - if (data_pos + len >= (unsigned) buffer_length) { + if (data_pos + len > (unsigned) buffer_length) { if((prints % 100) == 0) { log_msg(LOG_LEVEL_ERROR, "WARNING!! Discarding input data as frame buffer is too small.\n" "Well this should not happened. Expect troubles pretty soon.\n");