[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:
sayon.chen
2020-12-04 10:13:45 +08:00
committed by Herman Chen
parent d71e3ffce9
commit fe89da930f

View File

@@ -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