diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-10-09 01:01:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-10-09 01:01:07 +0000 |
commit | 4838727ea060b96775fdf0594c694b58076d993e (patch) | |
tree | 095c5a8b4905651f8927907f58d3f0e5665659c6 /libavformat/flvenc.c | |
parent | 12d96de3acf660d53d6931e2045ec21fd8ae718f (diff) | |
download | ffmpeg-4838727ea060b96775fdf0594c694b58076d993e.tar.gz |
avoid generating invalid files
fixes issue213
Originally committed as revision 10692 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index d4ef51d5d3..171395d28a 100644 --- 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; |