lavfi/buffersink: fix check on pixel_fmts in the opaque parameter
authorAndrew Wason <rectalogic@rectalogic.com>
Sat, 22 Sep 2012 08:59:40 +0000 (10:59 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Sat, 22 Sep 2012 08:59:40 +0000 (10:59 +0200)
Fix programmatic selection of accepted pixel formats.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavfilter/sink_buffer.c

index 040fbaf..e34e8e2 100644 (file)
@@ -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);