[FFmpeg-devel] [PATCH] Initialize crc data in mlp_parser.c in its own function.
Wed Aug 13 04:17:00 CEST 2008
Attached patch initializes crc data from mlp_parser.c in its own function.
This removes the if (!crc_init) out of every call to mlp_checksum16().
It will also help in sharing the crc data between encoder and decoder.
One thing though. The parser uses crc_2d, the decoder uses crc_1d and
crc_63, and the encoder uses all three. Is it ok to assume that the
decoder will need the parser, and that the parser will be used for the
decoder, and hence make both (parser and decoder) call an
ff_mlp_init_crc() function that initializes all three crc structs?
That way it's easier to share the same init function with the encoder.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 888 bytes
Desc: not available
More information about the ffmpeg-devel