diff mpeg12.c @ 292:73a9ce3d9715 libavcodec

fcode_tables where too small, found by Klaas-Pieter Vlieg <vlieg@eurescom.de>
author michaelni
date Sun, 24 Mar 2002 23:45:13 +0000
parents 1fc96b02142e
children c1a8a1b4a24b
line wrap: on
line diff
--- a/mpeg12.c	Sun Mar 24 22:02:21 2002 +0000
+++ b/mpeg12.c	Sun Mar 24 23:45:13 2002 +0000
@@ -51,7 +51,7 @@
                                     int n);
 static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred);
 
-static UINT16 mv_penalty[MAX_FCODE][MAX_MV*2+1];
+static UINT16 mv_penalty[MAX_FCODE+1][MAX_MV*2+1];
 static UINT8 fcode_tab[MAX_MV*2+1];
 
 static void put_header(MpegEncContext *s, int header)