mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_scale_npp: check ff_set_common_formats return value
This commit is contained in:
parent
1d056dd855
commit
88281a5256
@ -171,9 +171,7 @@ static int nppscale_query_formats(AVFilterContext *ctx)
|
|||||||
};
|
};
|
||||||
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
Block a user