[Mplayer-cvslog] CVS: main/libavcodec msmpeg4.c,1.1,1.2

Jürgen Keil jkeil at mplayer.dev.hu
Thu Jul 12 17:33:59 CEST 2001


Update of /cvsroot/mplayer/main/libavcodec
In directory mplayer:/var/tmp.root/cvs-serv21271

Modified Files:
	msmpeg4.c 
Log Message:
fix avcodec crashes with "incorrect codes" error message.

init_vlc() call for the table_mb_intra passes an array size of 128, but the
table_mb_intra array only contains 64 elements in the first dimension!


Index: msmpeg4.c
===================================================================
RCS file: /cvsroot/mplayer/main/libavcodec/msmpeg4.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- msmpeg4.c	6 Jul 2001 03:32:40 -0000	1.1
+++ msmpeg4.c	12 Jul 2001 15:33:48 -0000	1.2
@@ -592,7 +592,7 @@
     init_vlc(&mb_non_intra_vlc, 9, 128, 
              &table_mb_non_intra[0][1], 8, 4,
              &table_mb_non_intra[0][0], 8, 4);
-    init_vlc(&mb_intra_vlc, 9, 128, 
+    init_vlc(&mb_intra_vlc, 9, 64, 
              &table_mb_intra[0][1], 4, 2,
              &table_mb_intra[0][0], 4, 2);
     return 0;




More information about the MPlayer-cvslog mailing list