projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88cb61b
)
Nellymoser 8KHZ flv muxing fix, patch by Alexander Wichers development at wichersdot nu
author
Alexander Wichers
<development@wichers.nu>
Sat, 18 Oct 2008 12:10:08 +0000
(12:10 +0000)
committer
Benjamin Larsson
<banan@ludd.ltu.se>
Sat, 18 Oct 2008 12:10:08 +0000
(12:10 +0000)
Originally committed as revision 15633 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvenc.c
patch
|
blob
|
history
diff --git
a/libavformat/flvenc.c
b/libavformat/flvenc.c
index
ac58407
..
fc9fc1b
100644
(file)
--- a/
libavformat/flvenc.c
+++ b/
libavformat/flvenc.c
@@
-103,7
+103,11
@@
static int get_audio_flags(AVCodecContext *enc){
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;