diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-15 21:52:34 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-15 21:52:34 +0000 |
commit | 4be2ac6d781d8005f29d2eeee20a9917c340ff32 (patch) | |
tree | b9a79081a0d006f2cedc4f44b6328d9a544768fc /libmpcodecs | |
parent | 9b11abbff7ba25fbae8e32e653e10621bdaea54a (diff) |
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_screenshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vf_screenshot.c b/libmpcodecs/vf_screenshot.c index c3a9453320..fc1b0f6ece 100644 --- a/libmpcodecs/vf_screenshot.c +++ b/libmpcodecs/vf_screenshot.c @@ -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){ |