This commit is contained in:
Martin Pulec
2021-06-28 14:42:00 +02:00
parent 6ac6715da5
commit 8eb8ecfcac

View File

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