Browse Source

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>
tags/n1.0
Andrew Wason Stefano Sabatini 12 years ago
parent
commit
225efccefc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/sink_buffer.c

+ 1
- 1
libavfilter/sink_buffer.c 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);


Loading…
Cancel
Save