(Scaler) Try to prevent calling NULL function pointer

This commit is contained in:
twinaphex 2015-02-10 20:31:17 +01:00
parent d6c53f3fa8
commit 2d35ab7fe1
2 changed files with 9 additions and 8 deletions

View file

@ -315,7 +315,9 @@ void scaler_ctx_scale(struct scaler_ctx *ctx,
else
{
/* Take generic filter path. */
if (ctx->scaler_horiz)
ctx->scaler_horiz(ctx, input_frame, input_stride);
if (ctx->scaler_vert)
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_stride, ctx->output.stride);
}