[MPlayer-dev-eng] [PATCH][RFC] video size change (realvideo)

Reimar Doeffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Nov 22 10:08:39 CET 2006


Hello,
On Wed, Nov 22, 2006 at 12:32:37AM +0100, Roberto Togni wrote:
> But I'm not sure about the vf.c vf_get_image() part. While is true that
> there is no need to reallocate the memory buffer when the new mpi image
> is smaller than the old one, there are a lot of other stuff that get
> skipped with the reallocation (stride, alignement, and some vf() calls).
> Does big->small resize works for other demuxers/codecs? Does anybody
> knows how that mpi allocation code works and what are the minimal
> things that have to be done on resize?
> My simple solution is to always reallocate the buffer.

I recently committed a fix for such a problem to the libmpeg2 decoder.
In that case all that was missing was setting mpi->stride correctly
after the size change.
I am quite confident that the change to vf.c is not needed.

Greetings,
Reimar D?ffinger



More information about the MPlayer-dev-eng mailing list