diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-10-05 15:32:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-05 15:32:39 +0000 |
commit | e5021fffce5ede762d6e290ef05580c85fc70146 (patch) | |
tree | 7f44e246cb979af011b0e87c20e27b941d565270 /libavcodec/mpeg12.c | |
parent | 8025405fcd6f9a061fbba357338ab502c0c22f1a (diff) | |
download | ffmpeg-e5021fffce5ede762d6e290ef05580c85fc70146.tar.gz |
mpeg1 + trellis quant segfault fix
Originally committed as revision 2346 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |