[MPlayer-dev-eng] [PATCH] mpi->w and mpi->h overwritten in libmpcodecs/vd.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Sep 24 22:29:09 CEST 2004


Hi,
mpcodecs_get_image overwrites the w and h fields of the mp_image 
structure after allocating it. But when using -vf spp and playing a file 
with height not divisible by 16, this causes
vf.c: have to REALLOCATE buffer memory :(
to be printed over and over.
Thsi patch removes these two lines, which I think is correct as filters 
should be able to set the size of the mpi bigger if they need this.
I also think this should not cause any problems, as w and h are set 
initially in new_mp_image in mp_image.h.

Greetings,
Reimar Döffinger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mpi_w_bad.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040924/cee9e6f8/attachment.txt>


More information about the MPlayer-dev-eng mailing list