[MPlayer-dev-eng] segfault when playing mjpegs
D Richard Felker III
dalias at aerifal.cx
Tue May 20 21:53:55 CEST 2003
On Tue, May 20, 2003 at 07:48:54PM +0200, Alex Beregszaszi wrote:
> > mplayer segfaults in vd_ffmpeg:669 when yuv2 files (mjpegs for
> > example) are decoded. the line is:
> > yuv422ptoyuy2(pic->data,pic->data,pic->data,
> > 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?
Why does this code even exist? vd_ffmpeg should just output 422p and
force vf_scale to get loaded. That will improve and/or simplify the DR
More information about the MPlayer-dev-eng