Commit 225efcce authored by Andrew Wason's avatar Andrew Wason Committed by Stefano Sabatini

lavfi/buffersink: fix check on pixel_fmts in the opaque parameter

Fix programmatic selection of accepted pixel formats.
Signed-off-by: 's avatarStefano Sabatini <stefasab@gmail.com>
parent ab4ee9fd
......@@ -195,7 +195,7 @@ static av_cold int vsink_init(AVFilterContext *ctx, const char *args, void *opaq
BufferSinkContext *buf = ctx->priv;
AVBufferSinkParams *params = opaque;
if (params && buf->pixel_fmts) {
if (params && params->pixel_fmts) {
const int *pixel_fmts = params->pixel_fmts;
buf->pixel_fmts = ff_copy_int_list(pixel_fmts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment