Commit c255f0b0 authored by Anton Khirnov's avatar Anton Khirnov

avconv: initialize hwaccel_pix_fmt

Fixes an assertion failure in vdpau_get_buffer() when -hwaccel auto is
used, but hwaccel init fails.
parent 089fac77
...@@ -528,6 +528,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic) ...@@ -528,6 +528,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
if (!ist->hwaccel_device) if (!ist->hwaccel_device)
exit_program(1); exit_program(1);
} }
ist->hwaccel_pix_fmt = AV_PIX_FMT_NONE;
break; break;
case AVMEDIA_TYPE_AUDIO: case AVMEDIA_TYPE_AUDIO:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment