Re: [FFmpeg-devel] [PATCH]Set bits_per_coded_sample for G.726 in mov
Michael Niedermayer gmx.at> writes: > > Ticket #4069 indicates that users unfortunately > > try to put G.726 in mov. Attached patch makes > > such files decodable. > > should be ok The patch was merged. Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH]Set bits_per_coded_sample for G.726 in mov
On Sat, Nov 01, 2014 at 10:57:18AM +0100, Carl Eugen Hoyos wrote: > Hi! > > Ticket #4069 indicates that users unfortunately try to put G.726 in mov. > Attached patch makes such files decodable. > > Please comment, Carl Eugen should be ok [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB You can kill me, but you cannot change the truth. signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH]Set bits_per_coded_sample for G.726 in mov
Hi! Ticket #4069 indicates that users unfortunately try to put G.726 in mov. Attached patch makes such files decodable. Please comment, Carl Eugen 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 */ ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel