[FFmpeg-devel] [PATCH]Fix MPlayer segfault

Carl Eugen Hoyos cehoyos
Wed Feb 25 16:34:32 CET 2009


Hi!

MPlayer currently crashes if one tries playback of VC1 or WMV3.
Attached patch fixes the segfault.

Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/vc1.c
===================================================================
--- libavcodec/vc1.c	(revision 17586)
+++ libavcodec/vc1.c	(working copy)
@@ -4348,6 +4348,7 @@
     CODEC_CAP_DELAY,
     NULL,
     .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1"),
+    .pix_fmts= ff_pixfmt_list_420
 };
 
 AVCodec wmv3_decoder = {
@@ -4362,6 +4363,7 @@
     CODEC_CAP_DELAY,
     NULL,
     .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9"),
+    .pix_fmts= ff_pixfmt_list_420
 };
 
 #if CONFIG_WMV3_VDPAU_DECODER



More information about the ffmpeg-devel mailing list