[MPlayer-cvslog] r20946 - trunk/libmpcodecs/vf_screenshot.c
gpoirier
subversion at mplayerhq.hu
Wed Nov 15 22:52:34 CET 2006
Author: gpoirier
Date: Wed Nov 15 22:52:34 2006
New Revision: 20946
Modified:
trunk/libmpcodecs/vf_screenshot.c
Log:
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)
Modified: trunk/libmpcodecs/vf_screenshot.c
==============================================================================
--- trunk/libmpcodecs/vf_screenshot.c (original)
+++ trunk/libmpcodecs/vf_screenshot.c Wed Nov 15 22:52:34 2006
@@ -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){
More information about the MPlayer-cvslog
mailing list