From 779a045f845a8231b8b5c887518a027c177333ad Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Thu, 18 Jul 2002 22:58:54 +0000 Subject: Fix 'dungeons & dragons' trailer segmentation fault CVS patchset: 2313 CVS date: 2002/07/18 22:58:54 --- src/libxinevdec/svq1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libxinevdec/svq1.c b/src/libxinevdec/svq1.c index b78551f79..c0353e70b 100644 --- a/src/libxinevdec/svq1.c +++ b/src/libxinevdec/svq1.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: svq1.c,v 1.5 2002/07/15 22:07:18 esnel Exp $ + * $Id: svq1.c,v 1.6 2002/07/18 22:58:54 esnel Exp $ */ #include @@ -1335,8 +1335,8 @@ static void svq1_copy_frame (svq1_t *svq1, uint8_t *base[3], int pitches[3]) { for (i=1; i < 3; i++) { src = svq1->base[i]; dst = base[i]; - cr1 = &dst[pitches[i] * ((svq1->height / 2) - 1)]; - cr2 = &dst[pitches[i] * ((svq1->height / 2) - 2)]; + cr1 = &dst[pitches[i] * ((svq1->height / 2) - 2)]; + cr2 = &dst[pitches[i] * ((svq1->height / 2) - 3)]; /* horizontally upscale first line */ hscale_chroma_line (cr1, src, (svq1->width / 4)); -- cgit v1.2.3