From b7327887ea260d26e4fe98d34149cd57168f2ba3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 23 Mar 2012 15:46:30 +0100 Subject: avconv: get output pixel format from lavfi. This way we don't require a clearly defined corresponding input stream. The result for the xwd test changes because rgb24 is now chosen instead of bgra. --- avplay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index 4ebccb2acf..a11f952402 100644 --- a/avplay.c +++ b/avplay.c @@ -1701,9 +1701,10 @@ static AVFilter input_filter = static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const char *vfilters) { + static const enum PixelFormat pix_fmts[] = { PIX_FMT_YUV420P, PIX_FMT_NONE }; char sws_flags_str[128]; int ret; - SinkContext sink_ctx = { .pix_fmt = PIX_FMT_YUV420P }; + SinkContext sink_ctx = { .pix_fmts = pix_fmts }; AVFilterContext *filt_src = NULL, *filt_out = NULL; snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags); graph->scale_sws_opts = av_strdup(sws_flags_str); -- cgit v1.2.3