Mercurial > libavcodec.hg
comparison mlp_parser.c @ 11266:7de903afbd92 libavcodec
mlp_parser: Fix memleak.
ff_combine_frame() is called, which allocates ParseContext->buffer if needed,
so ff_parse_close() must be called to free it.
Patch by jai.
| author | ramiro |
|---|---|
| date | Tue, 23 Feb 2010 16:54:05 +0000 |
| parents | dfa02260a864 |
| children | 7dd2a45249a9 |
comparison
equal
deleted
inserted
replaced
| 11265:444b3a297ca5 | 11266:7de903afbd92 |
|---|---|
| 291 AVCodecParser mlp_parser = { | 291 AVCodecParser mlp_parser = { |
| 292 { CODEC_ID_MLP, CODEC_ID_TRUEHD }, | 292 { CODEC_ID_MLP, CODEC_ID_TRUEHD }, |
| 293 sizeof(MLPParseContext), | 293 sizeof(MLPParseContext), |
| 294 mlp_init, | 294 mlp_init, |
| 295 mlp_parse, | 295 mlp_parse, |
| 296 NULL, | 296 ff_parse_close, |
| 297 }; | 297 }; |
