changeset 1503:d53b1fa09b60 libavcodec

mpeg1 + trellis quant segfault fix
author michaelni
date Sun, 05 Oct 2003 15:32:39 +0000
parents c7858e2bd1c1
children df7ab60d1ee0
files mpeg12.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Sat Oct 04 23:59:14 2003 +0000
+++ b/mpeg12.c	Sun Oct 05 15:32:39 2003 +0000
@@ -789,7 +789,9 @@
         s->max_qcoeff= 2047;
     }
     s->intra_ac_vlc_length=
-    s->inter_ac_vlc_length= uni_mpeg1_ac_vlc_len;
+    s->inter_ac_vlc_length=
+    s->intra_ac_vlc_last_length=
+    s->inter_ac_vlc_last_length= uni_mpeg1_ac_vlc_len;
 }
 
 static inline void encode_dc(MpegEncContext *s, int diff, int component)