mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_scale_npp: check ff_set_common_formats return value
This commit is contained in:
parent
1d056dd855
commit
88281a5256
|
@ -169,11 +169,9 @@ static int nppscale_query_formats(AVFilterContext *ctx)
|
||||||
static const enum AVPixelFormat pixel_formats[] = {
|
static const enum AVPixelFormat pixel_formats[] = {
|
||||||
AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,
|
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 ff_set_common_formats(ctx, pix_fmts);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx)
|
static int init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx)
|
||||||
|
|
Loading…
Reference in New Issue