From 5bcabc56c02101530679fbaaf56b365e19908427 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 10 Jul 2012 13:22:01 +0200 Subject: [PATCH] Define snow .pix_fmts to allow colour space auto-selection. --- libavcodec/snowenc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index d6dd58cc2c..329e7c22b9 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1938,6 +1938,10 @@ AVCodec ff_snow_encoder = { .init = encode_init, .encode2 = encode_frame, .close = encode_end, + .pix_fmts = (const enum PixelFormat[]){ + PIX_FMT_YUV420P, PIX_FMT_YUV410P, PIX_FMT_YUV444P, + PIX_FMT_NONE + }, .long_name = NULL_IF_CONFIG_SMALL("Snow"), .priv_class = &snowenc_class, };