summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2002-07-18 22:58:54 +0000
committerEwald Snel <esnel@users.sourceforge.net>2002-07-18 22:58:54 +0000
commit779a045f845a8231b8b5c887518a027c177333ad (patch)
tree105fd2e0a12cc06ef972cf337c4bfd2cd5cf9ead
parent47327e12d996a16df5376c7386631ea715a77898 (diff)
downloadxine-lib-779a045f845a8231b8b5c887518a027c177333ad.tar.gz
xine-lib-779a045f845a8231b8b5c887518a027c177333ad.tar.bz2
Fix 'dungeons & dragons' trailer segmentation fault
CVS patchset: 2313 CVS date: 2002/07/18 22:58:54
-rw-r--r--src/libxinevdec/svq1.c6
1 files 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 <stdio.h>
@@ -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));