diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-20 13:45:20 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-08-20 18:45:17 +0200 |
commit | cb51d9ed254dd3cecc83bc158dea91a973de6d58 (patch) | |
tree | 57ef30ae4d2362061e4cc79ae0cc3aa7abbd9f7b | |
parent | a1ce54ce6a5d7c50265aac0eee39bbb899043798 (diff) | |
download | ffmpeg-cb51d9ed254dd3cecc83bc158dea91a973de6d58.tar.gz |
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>
(cherry picked from commit 3d64845600c6486a2706b118a81805f3bf4d3db5)
-rw-r--r-- | libavformat/movenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index bc50ccd8e0..bba42782e0 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3641,6 +3641,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", |