aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-11-03 00:38:13 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-11-03 00:38:13 +0100
commite6b7246a688bfd7e3a52c3ec639fa0f92c4bfc09 (patch)
tree1a22819f48acfcedba79773978bbfb186a399c38
parent9c097f1cfc1825882353dc73e24a0d707d2495f2 (diff)
downloadffmpeg-e6b7246a688bfd7e3a52c3ec639fa0f92c4bfc09.tar.gz
lavf/movenc: Write G.726 bitrate to make the files decodable.
Fixes ticket #4069.
-rw-r--r--libavformat/movenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 974edea462..b9576dc1f8 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 */