summaryrefslogtreecommitdiff
path: root/libavfilter/sink_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r--libavfilter/sink_buffer.c2
1 files changed, 1 insertions, 1 deletions
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);