[FFmpeg-devel] [PATCH] Initialize crc data in mlp_parser.c in its own function.
Wed Aug 13 04:35:52 CEST 2008
On Tue, Aug 12, 2008 at 11:17:00PM -0300, Ramiro Polla wrote:
> 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.
its ok to have shared functions with proper dependancies in the makefile
its not ok to assume that there is a parser before the decoder or a
decoder after the parser
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel