This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 6181195d1f137252f0ebe6134b02a6d27ec0fc2b Author: Tim Walker <[email protected]> AuthorDate: Tue May 19 15:10:45 2026 +0200 Commit: James Almer <[email protected]> CommitDate: Wed May 20 12:31:15 2026 +0000 avformat/movenc: use sample_rate to determine audio stsd version. timescale should be equal sample_rate, but the latter is the actual source field used when writing the stsd atom since 3b5d4428acf6eab60410358a5dbf931a17300ecf --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index d0346b6f4c..95b1e3a049 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1379,7 +1379,7 @@ static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex int ret = 0; if (track->mode == MODE_MOV) { - if (track->timescale > UINT16_MAX || !track->par->ch_layout.nb_channels) { + if (track->par->sample_rate > UINT16_MAX || !track->par->ch_layout.nb_channels) { if (mov_get_lpcm_flags(track->par->codec_id)) tag = AV_RL32("lpcm"); version = 2; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
