Move external library codec registration to a separate section after all

native codecs. This way native implementations are always preferred.

Originally committed as revision 10917 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2007-11-04 01:25:21 +00:00
parent 0cb2774a4a
commit a045e5152f
1 changed files with 14 additions and 12 deletions

View File

@ -98,8 +98,6 @@ void avcodec_register_all(void)
REGISTER_DECODER (INTERPLAY_VIDEO, interplay_video); REGISTER_DECODER (INTERPLAY_VIDEO, interplay_video);
REGISTER_ENCDEC (JPEGLS, jpegls); REGISTER_ENCDEC (JPEGLS, jpegls);
REGISTER_DECODER (KMVC, kmvc); REGISTER_DECODER (KMVC, kmvc);
REGISTER_ENCODER (LIBX264, libx264);
REGISTER_ENCODER (LIBXVID, libxvid);
REGISTER_ENCODER (LJPEG, ljpeg); REGISTER_ENCODER (LJPEG, ljpeg);
REGISTER_DECODER (LOCO, loco); REGISTER_DECODER (LOCO, loco);
REGISTER_DECODER (MDEC, mdec); REGISTER_DECODER (MDEC, mdec);
@ -182,15 +180,6 @@ void avcodec_register_all(void)
REGISTER_DECODER (DSICINAUDIO, dsicinaudio); REGISTER_DECODER (DSICINAUDIO, dsicinaudio);
REGISTER_ENCDEC (FLAC, flac); REGISTER_ENCDEC (FLAC, flac);
REGISTER_DECODER (IMC, imc); REGISTER_DECODER (IMC, imc);
REGISTER_ENCDEC (LIBAMR_NB, libamr_nb);
REGISTER_ENCDEC (LIBAMR_WB, libamr_wb);
REGISTER_DECODER (LIBA52, liba52);
REGISTER_ENCODER (LIBFAAC, libfaac);
REGISTER_DECODER (LIBFAAD, libfaad);
REGISTER_ENCDEC (LIBGSM, libgsm);
REGISTER_ENCDEC (LIBGSM_MS, libgsm_ms);
REGISTER_ENCODER (LIBMP3LAME, libmp3lame);
REGISTER_ENCODER (LIBTHEORA, libtheora);
REGISTER_DECODER (MACE3, mace3); REGISTER_DECODER (MACE3, mace3);
REGISTER_DECODER (MACE6, mace6); REGISTER_DECODER (MACE6, mace6);
REGISTER_ENCDEC (MP2, mp2); REGISTER_ENCDEC (MP2, mp2);
@ -214,7 +203,6 @@ void avcodec_register_all(void)
REGISTER_ENCDEC (WMAV1, wmav1); REGISTER_ENCDEC (WMAV1, wmav1);
REGISTER_ENCDEC (WMAV2, wmav2); REGISTER_ENCDEC (WMAV2, wmav2);
REGISTER_DECODER (WS_SND1, ws_snd1); REGISTER_DECODER (WS_SND1, ws_snd1);
REGISTER_ENCDEC (LIBVORBIS, libvorbis);
/* pcm codecs */ /* pcm codecs */
REGISTER_ENCDEC (PCM_ALAW, pcm_alaw); REGISTER_ENCDEC (PCM_ALAW, pcm_alaw);
@ -274,6 +262,20 @@ void avcodec_register_all(void)
REGISTER_ENCDEC (DVBSUB, dvbsub); REGISTER_ENCDEC (DVBSUB, dvbsub);
REGISTER_ENCDEC (DVDSUB, dvdsub); REGISTER_ENCDEC (DVDSUB, dvdsub);
/* external libraries */
REGISTER_DECODER (LIBA52, liba52);
REGISTER_ENCDEC (LIBAMR_NB, libamr_nb);
REGISTER_ENCDEC (LIBAMR_WB, libamr_wb);
REGISTER_ENCODER (LIBFAAC, libfaac);
REGISTER_DECODER (LIBFAAD, libfaad);
REGISTER_ENCDEC (LIBGSM, libgsm);
REGISTER_ENCDEC (LIBGSM_MS, libgsm_ms);
REGISTER_ENCODER (LIBMP3LAME, libmp3lame);
REGISTER_ENCODER (LIBTHEORA, libtheora);
REGISTER_ENCDEC (LIBVORBIS, libvorbis);
REGISTER_ENCODER (LIBX264, libx264);
REGISTER_ENCODER (LIBXVID, libxvid);
/* parsers */ /* parsers */
REGISTER_PARSER (AAC, aac); REGISTER_PARSER (AAC, aac);
REGISTER_PARSER (AC3, ac3); REGISTER_PARSER (AC3, ac3);