Commit a7ec25e5 authored by michael's avatar michael

avoid generating invalid files

fixes issue213


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10692 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 18fe536e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment