[FFmpeg-devel] [PATCH]Fix remuxing of IMA_QT in mov

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Aug 26 12:14:47 CEST 2013


Hi!

Attached patch fixes ticket #1603 for me.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index a46e8f8..16dde8e 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3731,7 +3731,8 @@ 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) {
+            if (st->codec->codec_id == AV_CODEC_ID_ILBC ||
+                st->codec->codec_id == AV_CODEC_ID_ADPCM_IMA_QT) {
                 track->audio_vbr = 1;
             }
             if (track->mode != MODE_MOV &&


More information about the ffmpeg-devel mailing list