1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Andrew Wason 2012-09-22 10:59:40 +02:00 committed by Stefano Sabatini
parent ab4ee9fd5e
commit 225efccefc

View 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);