diff options
author | Andrew Wason <rectalogic@rectalogic.com> | 2012-09-22 10:59:40 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-09-22 10:59:40 +0200 |
commit | 225efccefcf342dfdb37a61ff86fce537be9f524 (patch) | |
tree | 319039636ec1be9667b29dfb5a40eb33a2cd6875 | |
parent | ab4ee9fd5ed8a875f1e0e5509cccb4bff79dcc6a (diff) | |
download | ffmpeg-225efccefcf342dfdb37a61ff86fce537be9f524.tar.gz |
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>
-rw-r--r-- | libavfilter/sink_buffer.c | 2 |
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); |