[Libav-user] ff_codec_wav_tags has duplicate tags
坎
xin_wu_hen at qq.com
Mon Apr 17 05:37:42 EEST 2017
Hi,
When I tried to play a ogg file with audio formats as pcm_u8,it turned out to be pcm_s16le. By tracking the avformat_open_input, I got this:
st->codecpar->codec_id = ff_codec_get_id(ff_codec_wav_tags,...)
while, ff_codec_wav_tags as follows:
ff_codec_wav_tags[] = {
{ AV_CODEC_ID_PCM_S16LE, 0x0001 },
/* must come after s16le in this list */
{ AV_CODEC_ID_PCM_U8, 0x0001 },
{ AV_CODEC_ID_PCM_S24LE, 0x0001 },
{ AV_CODEC_ID_PCM_S32LE, 0x0001 },
{ AV_CODEC_ID_PCM_S64LE, 0x0001 },
When tags is 0x0001, AV_CODEC_ID_PCM_S16LE is always returned. Should they have different tags?
Best Regards.
Yeoman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170417/19cec0b3/attachment.html>
More information about the Libav-user
mailing list