[MPlayer-dev-eng] segfault when playing mjpegs

Alex Beregszaszi alex at fsn.hu
Tue May 20 19:48:54 CEST 2003


Hi,

> mplayer segfaults in vd_ffmpeg:669 when yuv2 files (mjpegs for
> example) are decoded. the line is:
> 
>     yuv422ptoyuy2(pic->data[0],pic->data[1],pic->data[2],
> 
> but yuv422ptoyuy2 is uninitialized. i found its initialization in
> sws_rgb2rgb_init() (postproc/rgb2rgb.c), but it isn't called unless
> ,,-vf scale'' is used. i don't understand mplayer's video layer, so
> i can't propose any solution. could anyone take a look at it, please?
> it's pretty annoying.
Ah yes ;) and thanks for the report!

Attached a possible fix. Michael?

-- 
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vd_ffmpeg.c.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030520/267b172a/attachment.txt>


More information about the MPlayer-dev-eng mailing list