mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(Scaler) Try to prevent calling NULL function pointer
This commit is contained in:
parent
d6c53f3fa8
commit
2d35ab7fe1
2 changed files with 9 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue