[FFmpeg-devel] [PATCH]Fix MPlayer segfault

Carl Eugen Hoyos cehoyos
Wed Feb 25 16:53:30 CET 2009

Michael Niedermayer <michaelni <at> gmx.at> writes:

> On Wed, Feb 25, 2009 at 04:34:32PM +0100, Carl Eugen Hoyos wrote:
> > Hi!
> >
> > MPlayer currently crashes if one tries playback of VC1 or WMV3.
> > Attached patch fixes the segfault.
> >
> > Please comment, Carl Eugen
> ok


I was not yet able to fix the same problem for -vo vdpau -vc ffwmv3vdpau.
If I add the following line to vc1_vdpau_decoder and wmv3_vdpau_decoder,
vd_ffmpeg.c believes I want to use xvmc and asserts:
.pix_fmts = (enum PixelFormat[]){PIX_FMT_VDPAU_WMV3, PIX_FMT_NONE}

Carl Eugen

Forced video codec: ffvc1vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1280 x 720 (preferred colorspace: VC1 VDPAU 
VDec: using VC1 VDPAU acceleration as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1280x720 => 1280x720 VC1 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
mplayer: libmpcodecs/vd_ffmpeg.c:919: get_format: Assertion `ctx->do_slices' 

More information about the ffmpeg-devel mailing list