(Scaler) Try to prevent calling NULL function pointer
This commit is contained in:
parent
d6c53f3fa8
commit
2d35ab7fe1
|
@ -315,7 +315,9 @@ void scaler_ctx_scale(struct scaler_ctx *ctx,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Take generic filter path. */
|
/* Take generic filter path. */
|
||||||
|
if (ctx->scaler_horiz)
|
||||||
ctx->scaler_horiz(ctx, input_frame, input_stride);
|
ctx->scaler_horiz(ctx, input_frame, input_stride);
|
||||||
|
if (ctx->scaler_vert)
|
||||||
ctx->scaler_vert (ctx, output, output_stride);
|
ctx->scaler_vert (ctx, output, output_stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -324,4 +326,3 @@ void scaler_ctx_scale(struct scaler_ctx *ctx,
|
||||||
ctx->out_width, ctx->out_height,
|
ctx->out_width, ctx->out_height,
|
||||||
ctx->out_stride, ctx->output.stride);
|
ctx->out_stride, ctx->output.stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue