summaryrefslogtreecommitdiff
path: root/libavcodec/mlp_parser.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@via.ecp.fr>2008-12-03 01:14:06 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-12-03 01:14:06 +0000
commit7a2efd2e447d5e7c7c0af61417a838b042fb7d0a (patch)
treee355330c3d8bb90886842a6fb70db7062f04ead1 /libavcodec/mlp_parser.c
parent751ccc48521d40505449d1fbfed8c6cd4ad1257d (diff)
mlp: initialize all CRC tables in a common function.
This way the decoder does not have to depend on the parser being initialized before. Patch by Laurent Aimar <fenrir at via dot ecp dot fr>. Originally committed as revision 15986 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlp_parser.c')
-rw-r--r--libavcodec/mlp_parser.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index 4400d71fc4..191433376a 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -150,6 +150,12 @@ typedef struct MLPParseContext
int num_substreams;
} MLPParseContext;
+static av_cold int mlp_init(AVCodecParserContext *s)
+{
+ ff_mlp_init_crc();
+ return 0;
+}
+
static int mlp_parse(AVCodecParserContext *s,
AVCodecContext *avctx,
const uint8_t **poutbuf, int *poutbuf_size,
@@ -283,7 +289,7 @@ lost_sync:
AVCodecParser mlp_parser = {
{ CODEC_ID_MLP },
sizeof(MLPParseContext),
- ff_mlp_init_crc2D,
+ mlp_init,
mlp_parse,
NULL,
};