diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index b2736163c2..e5d4f91621 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -789,7 +789,9 @@ void ff_mpeg1_encode_init(MpegEncContext *s) 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)