mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-10 03:20:04 +08:00
[vp9_dec]: Fix 10bit stride set issue
Change-Id: I7c4b342c7229322e589dd10a0582c71dc025a3a2 Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
This commit is contained in:
@@ -384,7 +384,7 @@ static RK_S32 vp9_alloc_frame(Vp9CodecContext *ctx, VP9Frame *frame)
|
||||
mpp_frame_set_width(frame->f, ctx->width);
|
||||
mpp_frame_set_height(frame->f, ctx->height);
|
||||
|
||||
mpp_frame_set_hor_stride(frame->f, ctx->width);
|
||||
mpp_frame_set_hor_stride(frame->f, ctx->width * s->bpp / 8);
|
||||
mpp_frame_set_ver_stride(frame->f, ctx->height);
|
||||
mpp_frame_set_errinfo(frame->f, 0);
|
||||
mpp_frame_set_discard(frame->f, 0);
|
||||
@@ -655,6 +655,7 @@ static RK_S32 decode_parser_header(Vp9CodecContext *ctx,
|
||||
mpp_err("Invalid sync code\n");
|
||||
return MPP_ERR_STREAM;
|
||||
}
|
||||
|
||||
if ((fmt = read_colorspace_details(ctx)) < 0)
|
||||
return fmt;
|
||||
// for profile 1, here follows the subsampling bits
|
||||
|
Reference in New Issue
Block a user