[FFmpeg-cvslog] lavfi/buffersink: fix check on pixel_fmts in the opaque parameter

Andrew Wason git at videolan.org
Sat Sep 22 11:08:07 CEST 2012


ffmpeg | branch: master | Andrew Wason <rectalogic at rectalogic.com> | Sat Sep 22 10:59:40 2012 +0200| [225efccefcf342dfdb37a61ff86fce537be9f524] | committer: Stefano Sabatini

lavfi/buffersink: fix check on pixel_fmts in the opaque parameter

Fix programmatic selection of accepted pixel formats.

Signed-off-by: Stefano Sabatini <stefasab at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=225efccefcf342dfdb37a61ff86fce537be9f524
---

 libavfilter/sink_buffer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c
index 040fbaf..e34e8e2 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);



More information about the ffmpeg-cvslog mailing list