[FFmpeg-cvslog] lavf/movenc: Write G.726 bitrate to make the files decodable.

Carl Eugen Hoyos git at videolan.org
Mon Nov 3 01:07:19 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Nov  3 00:38:13 2014 +0100| [e6b7246a688bfd7e3a52c3ec639fa0f92c4bfc09] | committer: Carl Eugen Hoyos

lavf/movenc: Write G.726 bitrate to make the files decodable.

Fixes ticket #4069.

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

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

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 974edea..b9576dc 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -938,6 +938,8 @@ static int mov_write_audio_tag(AVIOContext *pb, MOVTrack *track)
             if (track->enc->codec_id == AV_CODEC_ID_PCM_U8 ||
                 track->enc->codec_id == AV_CODEC_ID_PCM_S8)
                 avio_wb16(pb, 8); /* bits per sample */
+            else if (track->enc->codec_id == AV_CODEC_ID_ADPCM_G726)
+                avio_wb16(pb, track->enc->bits_per_coded_sample);
             else
                 avio_wb16(pb, 16);
             avio_wb16(pb, track->audio_vbr ? -2 : 0); /* compression ID */



More information about the ffmpeg-cvslog mailing list