mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 01:52:46 +08:00
[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:
@@ -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;
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user