@ -18,9 +18,10 @@
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA
*/
*/
# include <assert.h>
# include "config.h"
# include "config.h"
# include "libavutil/avassert.h"
# include "avcodec.h"
# include "avcodec.h"
# include "codec_id.h"
# include "codec_id.h"
# include "version.h"
# include "version.h"
@ -30,10 +31,15 @@ const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
unsigned avcodec_version ( void )
unsigned avcodec_version ( void )
{
{
av_assert0 ( AV_CODEC_ID_PCM_S8_PLANAR = = 65563 ) ;
static_assert ( AV_CODEC_ID_LEAD = = 269 & &
av_assert0 ( AV_CODEC_ID_ADPCM_G722 = = 69660 ) ;
AV_CODEC_ID_PCM_SGA = = 65572 & &
av_assert0 ( AV_CODEC_ID_SRT = = 94216 ) ;
AV_CODEC_ID_ADPCM_XMD = = 69683 & &
av_assert0 ( LIBAVCODEC_VERSION_MICRO > = 100 ) ;
AV_CODEC_ID_CBD2_DPCM = = 81928 & &
AV_CODEC_ID_QOA = = 86121 & &
AV_CODEC_ID_ARIB_CAPTION = = 94233 & &
AV_CODEC_ID_SMPTE_2038 = = 98315 ,
" Don't insert new codec ids in the middle of a list " ) ;
static_assert ( LIBAVCODEC_VERSION_MICRO > = 100 , " micro version starts at 100 " ) ;
return LIBAVCODEC_VERSION_INT ;
return LIBAVCODEC_VERSION_INT ;
}
}