avfilter/vf_scale_npp: check ff_set_common_formats return value

This commit is contained in:
Timo Rothenpieler 2016-11-29 17:28:15 +01:00
parent 1d056dd855
commit 88281a5256
1 changed files with 2 additions and 4 deletions

View File

@ -171,9 +171,7 @@ static int nppscale_query_formats(AVFilterContext *ctx)
};
AVFilterFormats *pix_fmts = ff_make_format_list(pixel_formats);
ff_set_common_formats(ctx, pix_fmts);
return 0;
return ff_set_common_formats(ctx, pix_fmts);
}
static int init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx)