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

陆然 hephooey at gmail.com
Thu Nov 23 03:04:12 CET 2006


Hi,

On Wednesday 22 November 2006 07:32, Roberto Togni wrote:

> The vd_realvideo.c part is ok, size change is limited to big->small,
> it's assumed that the size in the rm container is the maximum size, and
> all samples respects this (size change is known after the frame is
> decoded by the binary codec, so if the picture is bigger than expected
> mplayer is already sig11 because of mpi->plane[0] overflow when the
> reise is checked). RealPlayer just rescale the smaller picture to the
> big size, without changing the window size.

I just want to point out that in some realvideo video size may change from the 
maximum size described in the container to a smaller size, then change back to 
the maximum size again. If we allocate the buffer to a smaller size, mplayer 
will crash when the video size increases.

Also the transform_out[3], transform_out[4] should not always be trusted, I 
have samples that video size does not changed while according to 
transform_out[3],[4] it should, but in that case the transform_out[0] is 
always 0, I don't know what it means but it seems transform_out[0] should be 
checked to decide if the video size is really changed.

I'll upload a sample to illustrate this problem.

-- 
Best Regards,
LR



More information about the MPlayer-dev-eng mailing list