[Ffmpeg-devel] CamStudio support
Sun Jan 8 22:52:00 CET 2006
Mike Melanson wrote:
> Diego Biurrun wrote:
>> This may be a more general problem, but is there a way to avoid this
>> getting printed for every frame if lzo is not available?
> Yes: Declare flags in the codec context data structure, one for each
> message, init them to false, and it the corresponding codec is not
> compiled in and the flag is false, print the message and set the flag to
> true. The message only gets printed once per codec.
Or just report the error in codec initialisation and return an error.
Or even better do the check at compilation time (disable codec or return
an error). After all the codec is unusable without the lib...
More information about the ffmpeg-devel