Commit 3edfabfb authored by bcoudurier's avatar bcoudurier

forbid mp3 < 16000hz in anything except mov

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15189 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bad95f59
...@@ -1610,6 +1610,12 @@ static int mov_write_header(AVFormatContext *s) ...@@ -1610,6 +1610,12 @@ static int mov_write_header(AVFormatContext *s)
}else{ }else{
track->sampleSize = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels; track->sampleSize = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels;
} }
if(track->mode != MODE_MOV &&
track->enc->codec_id == CODEC_ID_MP3 && track->enc->sample_rate < 16000){
av_log(s, AV_LOG_ERROR, "track %d: muxing mp3 at %dhz is not supported\n",
i, track->enc->sample_rate);
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