@ -384,11 +384,6 @@ const AVCodecTag ff_codec_wav_tags[] = {
{ AV_CODEC_ID_FLAC , 0xF1AC } ,
{ AV_CODEC_ID_ADPCM_SWF , ( ' S ' < < 8 ) + ' F ' } ,
{ AV_CODEC_ID_VORBIS , ( ' V ' < < 8 ) + ' o ' } , //HACK/FIXME, does vorbis in WAV/AVI have an (in)official id?
/* FIXME: All of the IDs below are not 16 bit and thus illegal. */
// for NuppelVideo (nuv.c)
{ AV_CODEC_ID_PCM_S16LE , MKTAG ( ' R ' , ' A ' , ' W ' , ' A ' ) } ,
{ AV_CODEC_ID_MP3 , MKTAG ( ' L ' , ' A ' , ' M ' , ' E ' ) } ,
{ AV_CODEC_ID_NONE , 0 } ,
} ;
@ -757,16 +752,12 @@ enum AVCodecID ff_wav_codec_get_id(unsigned int tag, int bps)
id = ff_codec_get_id ( ff_codec_wav_tags , tag ) ;
if ( id < = 0 )
return id ;
/* handle specific u8 codec */
if ( id = = AV_CODEC_ID_PCM_S16LE & & bps = = 8 )
id = AV_CODEC_ID_PCM_U8 ;
if ( id = = AV_CODEC_ID_PCM_S16LE & & bps = = 20 | |
id = = AV_CODEC_ID_PCM_S16LE & & bps = = 24 )
id = AV_CODEC_ID_PCM_S24LE ;
if ( id = = AV_CODEC_ID_PCM_S16LE & & bps = = 32 )
id = AV_CODEC_ID_PCM_S32LE ;
if ( id = = AV_CODEC_ID_PCM_F32LE & & bps = = 64 )
id = AV_CODEC_ID_PCM_F64LE ;
if ( id = = AV_CODEC_ID_PCM_S16LE )
id = ff_get_pcm_codec_id ( bps , 0 , 0 , ~ 1 ) ;
else if ( id = = AV_CODEC_ID_PCM_F32LE )
id = ff_get_pcm_codec_id ( bps , 1 , 0 , 0 ) ;
if ( id = = AV_CODEC_ID_ADPCM_IMA_WAV & & bps = = 8 )
id = AV_CODEC_ID_PCM_ZORK ;
return id ;