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");