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)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20946 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
gpoirier 2006-11-15 21:52:34 +00:00
parent 9b11abbff7
commit 4be2ac6d78
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ static void scale_image(struct vf_priv_s* priv, mp_image_t *mpi)
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){