mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[mpp_dec]: Fix the problem of read data error
For data with sizes of 5120x7160 and 8000x8000, the required buffer size was calculated incorrectly during the encoding process, which caused the requested buffer to be too large, resulting in drm exceptions. Therefore, the method of calculating data has been modified. Signed-off-by: Hongjin Li <vic.hong@rock-chips.com> Change-Id: I519a76687118d568cf57e7d3d54a150e9019285c
This commit is contained in:
@@ -213,7 +213,7 @@ RK_S32 mpi_enc_opt_f(void *ctx, const char *next)
|
||||
/* decimal value, use atoi */
|
||||
format = (MppFrameFormat)atoi(next);
|
||||
}
|
||||
if (MPP_FRAME_FMT_IS_LE(format) &&
|
||||
if (MPP_FRAME_FMT_IS_BE(format) &&
|
||||
(MPP_FRAME_FMT_IS_YUV(format) || MPP_FRAME_FMT_IS_RGB(format))) {
|
||||
cmd->format = format;
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user