Browse code

avconv: initialize hwaccel_pix_fmt

Fixes an assertion failure in vdpau_get_buffer() when -hwaccel auto is
used, but hwaccel init fails.

Anton Khirnov authored on 2013/11/23 22:07:48
Showing 1 changed files
... ...
@@ -528,6 +528,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
528 528
                 if (!ist->hwaccel_device)
529 529
                     exit_program(1);
530 530
             }
531
+            ist->hwaccel_pix_fmt = AV_PIX_FMT_NONE;
531 532
 
532 533
             break;
533 534
         case AVMEDIA_TYPE_AUDIO: