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

@ -169,11 +169,9 @@ static int nppscale_query_formats(AVFilterContext *ctx)
static const enum AVPixelFormat pixel_formats[] = {
AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,
};
AVFilterFormats *pix_fmts = ff_make_format_list(pixel_formats);
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)