From 915bbac6815eddd911fb5cb8a23517b3cac3a84b Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Tue, 11 Jun 2002 13:44:14 +0000 Subject: [PATCH] fixed one mpeg decoder memory leak Originally committed as revision 688 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpeg12.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 37e9b70..5efd5ad 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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, -- 2.7.4