[FFmpeg-cvslog] movenc: ilbc needs audio_vbr set.

Michael Niedermayer git at videolan.org
Tue Aug 20 18:50:57 CEST 2013


ffmpeg | branch: release/2.0 | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 20 13:45:20 2013 +0200| [61dc8494d70fb4c6977a013cda68c9993fa8cc4b] | committer: Carl Eugen Hoyos

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 at gmx.at>
(cherry picked from commit 3d64845600c6486a2706b118a81805f3bf4d3db5)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61dc8494d70fb4c6977a013cda68c9993fa8cc4b
---

 libavformat/movenc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 42e7c48..a9ba6ca 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3672,6 +3672,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",



More information about the ffmpeg-cvslog mailing list