changeset 494:54b88078c361 libavcodec

fixed one mpeg decoder memory leak
author bellard
date Tue, 11 Jun 2002 13:44:14 +0000
parents 873b9075d853
children 6f47eef8879f
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Tue Jun 11 13:43:27 2002 +0000
+++ b/mpeg12.c	Tue Jun 11 13:44:14 2002 +0000
@@ -533,6 +533,7 @@
     static int done = 0;
 
     if (!done) {
+        done = 1;
 
         init_vlc(&dc_lum_vlc, 9, 12, 
                  vlc_dc_lum_bits, 1, 1,