[mpp_dec]: Fix hor_stride_pixel is zero issue

Set hor_stride_pixel in function mpp_buf_slot_set_prop

Signed-off-by: vic.hong <vic.hong@rock-chips.com>
Change-Id: I832b7d4e9f0d5fda81816e4c42e75ec1ef2d841a
This commit is contained in:
vic.hong
2021-11-16 18:20:43 +08:00
committed by Herman Chen
parent 8d41958d4e
commit 8f0ca9fbbe
2 changed files with 2 additions and 0 deletions

View File

@@ -302,6 +302,7 @@ static void generate_info_set(MppBufSlotsImpl *impl, MppFrame frame, RK_U32 forc
mpp_frame_set_hor_stride_pixel(impl->info_set, hor_stride_pixel);
mpp_frame_set_buf_size(impl->info_set, size);
mpp_frame_set_buf_size(frame, size);
mpp_frame_set_hor_stride_pixel(frame, hor_stride_pixel);
impl->buf_size = size;
MppFrameImpl *info_set_impl = (MppFrameImpl *)impl->info_set;

View File

@@ -1475,6 +1475,7 @@ void *mpp_dec_advanced_thread(void *data)
mpp_frame_set_height(frame, mpp_frame_get_height(tmp));
mpp_frame_set_hor_stride(frame, mpp_frame_get_hor_stride(tmp));
mpp_frame_set_ver_stride(frame, mpp_frame_get_ver_stride(tmp));
mpp_frame_set_hor_stride_pixel(frame, mpp_frame_get_hor_stride_pixel(tmp));
mpp_frame_set_pts(frame, mpp_frame_get_pts(tmp));
mpp_frame_set_fmt(frame, mpp_frame_get_fmt(tmp));
mpp_frame_set_errinfo(frame, mpp_frame_get_errinfo(tmp));