From c255f0b001da3afa4709f5378680880b8a2dbe61 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 23 Nov 2013 14:07:48 +0100 Subject: avconv: initialize hwaccel_pix_fmt Fixes an assertion failure in vdpau_get_buffer() when -hwaccel auto is used, but hwaccel init fails. --- avconv_opt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'avconv_opt.c') diff --git a/avconv_opt.c b/avconv_opt.c index da8c6e7574..d62d11f5e6 100644 --- a/avconv_opt.c +++ b/avconv_opt.c @@ -528,6 +528,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic) if (!ist->hwaccel_device) exit_program(1); } + ist->hwaccel_pix_fmt = AV_PIX_FMT_NONE; break; case AVMEDIA_TYPE_AUDIO: -- cgit v1.2.3