From d19c408ec723e62ccccf367238af2dac8ce659a7 Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Fri, 12 Nov 2021 17:06:53 +0800 Subject: [PATCH] [mpi_dec_utils]: Fix read ivf file err Signed-off-by: Yandong Lin Change-Id: Id13ef0ac2a43c78b09d2e3df2a8c84e88061f7f3 --- utils/mpi_dec_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mpi_dec_utils.c b/utils/mpi_dec_utils.c index 554900f1..2ef3ca56 100644 --- a/utils/mpi_dec_utils.c +++ b/utils/mpi_dec_utils.c @@ -116,7 +116,7 @@ static RK_U32 read_ivf_file(FileReader data) impl->read_size = read_size; /* check reach eos whether or not */ - if (slot->size != data_size || feof(fp) || impl->read_total >= impl->file_size) + if (read_size != data_size || feof(fp) || impl->read_total >= impl->file_size) eos = 1; slot->buf = NULL;