I recently tried to upgrade the ffmpeg libraries I use in my Mac OS X application by downloading and compiling ffmpeg from source.
My code works correctly with pre-c
in av_register_all():
static int initialized;
if (initialized)
return;
initialized = 1;
avcodec_register_all();
Maybe due to some unnoticed factors, the static int variable "initialized" has been initialized while the avcodec has not been registered...Then we should call avcodec_register_all() to explicitly fulfill it. But I am inclined to think that it is a bug in ffmpeg.