Mercurial > libavformat.hg
changeset 3997:637c51f793f1 libavformat
Nellymoser 8KHZ flv muxing fix, patch by Alexander Wichers development at wichersdot nu
author | banan |
---|---|
date | Sat, 18 Oct 2008 12:10:08 +0000 |
parents | 41f9a32e9516 |
children | 692e5298a27a |
files | flvenc.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flvenc.c Sat Oct 18 12:08:55 2008 +0000 +++ b/flvenc.c Sat Oct 18 12:10:08 2008 +0000 @@ -103,7 +103,11 @@ flags |= FLV_CODECID_ADPCM | FLV_SAMPLESSIZE_16BIT; break; case CODEC_ID_NELLYMOSER: - flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT; + if (enc->sample_rate == 8000) { + flags |= FLV_CODECID_NELLYMOSER_8KHZ_MONO | FLV_SAMPLESSIZE_16BIT; + } else { + flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT; + } break; case 0: flags |= enc->codec_tag<<4;