libavcodec version check misses CODEC_ID_MJPEG, fails to compile
Brought to you by:
jmaggard
Compiling readymedia 1.1.4 against libavcodec 54.23.100 fails due to an undefined reference to AV_CODEC_ID_MJPEG. It looks like there's a version check in libav.h that references AV_CODEC_ID_ forms to the old style CODEC_ID_, but AV_CODEC_ID_MJPEG is missed in that block. Adding "#define AV_CODEC_ID_MJPEG CODEC_ID_MJPEG" to libav.h at about lineno 100 fixes the problem. I have no idea if using the older libavcodec breaks processing of MJPEG stuff where that is actually used though.
Actual error text is:
In file included from metadata.c:34:0:
libav.h: In function 'lav_is_thumbnail_stream':
libav.h:172:28: error: 'AV_CODEC_ID_MJPEG' undeclared (first use in this function)