mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avoid generating invalid files
fixes issue213 Originally committed as revision 10692 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
12d96de3ac
commit
4838727ea0
@ -66,8 +66,10 @@ static int get_audio_flags(AVCodecContext *enc){
|
|||||||
break;
|
break;
|
||||||
case 8000: //nellymoser only
|
case 8000: //nellymoser only
|
||||||
case 5512: //not mp3
|
case 5512: //not mp3
|
||||||
|
if(enc->codec_id != CODEC_ID_MP3){
|
||||||
flags |= FLV_SAMPLERATE_SPECIAL;
|
flags |= FLV_SAMPLERATE_SPECIAL;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
av_log(enc, AV_LOG_ERROR, "flv does not support that sample rate, choose from (44100, 22050, 11025).\n");
|
av_log(enc, AV_LOG_ERROR, "flv does not support that sample rate, choose from (44100, 22050, 11025).\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user