fixed one mpeg decoder memory leak
authorFabrice Bellard <fabrice@bellard.org>
Tue, 11 Jun 2002 13:44:14 +0000 (13:44 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Tue, 11 Jun 2002 13:44:14 +0000 (13:44 +0000)
Originally committed as revision 688 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index 37e9b70..5efd5ad 100644 (file)
@@ -533,6 +533,7 @@ void mpeg1_init_vlc(MpegEncContext *s)
     static int done = 0;
 
     if (!done) {
+        done = 1;
 
         init_vlc(&dc_lum_vlc, 9, 12, 
                  vlc_dc_lum_bits, 1, 1,