mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-27 09:43:34 +00:00
movenc: ilbc needs audio_vbr set.
Without this the block_align or bitrate value is not available to the decoder Fixes Ticket2858 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fb679d5374
commit
3d64845600
@ -3692,6 +3692,9 @@ static int mov_write_header(AVFormatContext *s)
|
||||
}else{
|
||||
track->sample_size = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels;
|
||||
}
|
||||
if (st->codec->codec_id == AV_CODEC_ID_ILBC) {
|
||||
track->audio_vbr = 1;
|
||||
}
|
||||
if (track->mode != MODE_MOV &&
|
||||
track->enc->codec_id == AV_CODEC_ID_MP3 && track->timescale < 16000) {
|
||||
av_log(s, AV_LOG_ERROR, "track %d: muxing mp3 at %dhz is not supported\n",
|
||||
|
Loading…
Reference in New Issue
Block a user