From 225efccefcf342dfdb37a61ff86fce537be9f524 Mon Sep 17 00:00:00 2001 From: Andrew Wason Date: Sat, 22 Sep 2012 10:59:40 +0200 Subject: [PATCH] lavfi/buffersink: fix check on pixel_fmts in the opaque parameter Fix programmatic selection of accepted pixel formats. Signed-off-by: Stefano Sabatini --- libavfilter/sink_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index 040fbafb22..e34e8e204b 100644 --- a/libavfilter/sink_buffer.c +++ b/libavfilter/sink_buffer.c @@ -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);