OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12d96de
)
avoid generating invalid files
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 9 Oct 2007 01:01:07 +0000
(
01:01
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 9 Oct 2007 01:01:07 +0000
(
01:01
+0000)
fixes issue213
Originally committed as revision 10692 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvenc.c
patch
|
blob
|
history
diff --git
a/libavformat/flvenc.c
b/libavformat/flvenc.c
index
d4ef51d
..
171395d
100644
(file)
--- a/
libavformat/flvenc.c
+++ b/
libavformat/flvenc.c
@@
-66,8
+66,10
@@
static int get_audio_flags(AVCodecContext *enc){
break;
case 8000: //nellymoser only
case 5512: //not mp3
+ if(enc->codec_id != CODEC_ID_MP3){
flags |= FLV_SAMPLERATE_SPECIAL;
break;
+ }
default:
av_log(enc, AV_LOG_ERROR, "flv does not support that sample rate, choose from (44100, 22050, 11025).\n");
return -1;