Mercurial > mplayer.hg
changeset 20930:29c478a2483f
Fix segfault with videos with unusual resolution, patch by Stanislav Maslovski % stanislav P maslovski A gmail P com %
Original thread:
date: Nov 15, 2006 10:38 PM
subject: [MPlayer-dev-eng] [PATCH] vf_screenshot.c: segfault (buffer overflow)
author | gpoirier |
---|---|
date | Wed, 15 Nov 2006 21:52:34 +0000 |
parents | bbe37270c6ad |
children | 0cc7dfcb2e3b |
files | libmpcodecs/vf_screenshot.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_screenshot.c Wed Nov 15 20:51:27 2006 +0000 +++ b/libmpcodecs/vf_screenshot.c Wed Nov 15 21:52:34 2006 +0000 @@ -139,7 +139,7 @@ dst[0] = priv->buffer; dst[1] = dst[2] = 0; - sws_scale_ordered(priv->ctx, mpi->planes, mpi->stride, 0, mpi->height, dst, dst_stride); + sws_scale_ordered(priv->ctx, mpi->planes, mpi->stride, 0, priv->dh, dst, dst_stride); } static void start_slice(struct vf_instance_s* vf, mp_image_t *mpi){