summaryrefslogtreecommitdiff
path: root/libavfilter/sink_buffer.c
diff options
context:
space:
mode:
authorAndrew Wason <rectalogic@rectalogic.com>2012-09-22 10:59:40 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-09-22 10:59:40 +0200
commit225efccefcf342dfdb37a61ff86fce537be9f524 (patch)
tree319039636ec1be9667b29dfb5a40eb33a2cd6875 /libavfilter/sink_buffer.c
parentab4ee9fd5ed8a875f1e0e5509cccb4bff79dcc6a (diff)
lavfi/buffersink: fix check on pixel_fmts in the opaque parameter
Fix programmatic selection of accepted pixel formats. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
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);