[FFmpeg-cvslog] avconv: initialize hwaccel_pix_fmt

Anton Khirnov git at videolan.org
Wed Dec 4 04:48:30 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Nov 23 14:07:48 2013 +0100| [c255f0b001da3afa4709f5378680880b8a2dbe61] | committer: Anton Khirnov

avconv: initialize hwaccel_pix_fmt

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c255f0b001da3afa4709f5378680880b8a2dbe61
---

 avconv_opt.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/avconv_opt.c b/avconv_opt.c
index da8c6e7..d62d11f 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:



More information about the ffmpeg-cvslog mailing list