Mercurial > libavcodec.hg
comparison mpeg12.c @ 494:54b88078c361 libavcodec
fixed one mpeg decoder memory leak
author | bellard |
---|---|
date | Tue, 11 Jun 2002 13:44:14 +0000 |
parents | fde314e1aaa1 |
children | 0b4450c15067 |
comparison
equal
deleted
inserted
replaced
493:873b9075d853 | 494:54b88078c361 |
---|---|
531 void mpeg1_init_vlc(MpegEncContext *s) | 531 void mpeg1_init_vlc(MpegEncContext *s) |
532 { | 532 { |
533 static int done = 0; | 533 static int done = 0; |
534 | 534 |
535 if (!done) { | 535 if (!done) { |
536 done = 1; | |
536 | 537 |
537 init_vlc(&dc_lum_vlc, 9, 12, | 538 init_vlc(&dc_lum_vlc, 9, 12, |
538 vlc_dc_lum_bits, 1, 1, | 539 vlc_dc_lum_bits, 1, 1, |
539 vlc_dc_lum_code, 2, 2); | 540 vlc_dc_lum_code, 2, 2); |
540 init_vlc(&dc_chroma_vlc, 9, 12, | 541 init_vlc(&dc_chroma_vlc, 9, 12, |