Change #271310
| Category | ffmpeg |
| Changed by | James Almer <jamrial@gmail.com> |
| Changed at | Tue 16 Jun 2026 14:18:24 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 51f5f60443eec9944c9d0cf24e0766edf403d7ef |
Comments
avformat/movenc: use a common denominator across all tracks as movie timescale The default of 1000 may result in off by 1 errors when rescaling certain durations, as is the case of fate-gaplessenc-itunes-to-ipod-aac, so lets try to prevent that by using a global timescale every track can agree with whenever possible. Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavformat/movenc.c
- libavformat/movenc.h
- tests/fate/mov.mak
- tests/ref/acodec/alac
- tests/ref/acodec/pcm-s16be
- tests/ref/acodec/pcm-s24be
- tests/ref/acodec/pcm-s32be
- tests/ref/acodec/pcm-s8
- tests/ref/fate/adtstoasc_ticket3715
- tests/ref/fate/autorotate
- tests/ref/fate/binsub-movtextenc
- tests/ref/fate/copy-psp
- tests/ref/fate/copy-trac236
- tests/ref/fate/copy-trac3074
- tests/ref/fate/filter-meta-4560-rotate0
- tests/ref/fate/gaplessenc-itunes-to-ipod-aac
- tests/ref/fate/generic-tags-remux-mov
- tests/ref/fate/h264-bsf-dts2pts
- tests/ref/fate/hevc-bsf-dts2pts-cra
- tests/ref/fate/hevc-bsf-dts2pts-idr
- tests/ref/fate/hevc-bsf-dts2pts-idr-cra
- tests/ref/fate/media100
- tests/ref/fate/mov-channel-description
- tests/ref/fate/mov-cover-image
- tests/ref/fate/mov-dovi-hvce-mp4-to-mp4
- tests/ref/fate/mov-mp4-chapters
- tests/ref/fate/mov-mp4-disposition-mpegts-remux
- tests/ref/fate/mov-mp4-fragmented-ttml-dfxp
- tests/ref/fate/mov-mp4-fragmented-ttml-stpp
- tests/ref/fate/mov-mp4-iamf-5_1_4
- tests/ref/fate/mov-mp4-iamf-7_1_4-video-last
- tests/ref/fate/mov-mp4-iamf-ambisonic_1
- tests/ref/fate/mov-mp4-iamf-stereo
- tests/ref/fate/mov-mp4-pcm
- tests/ref/fate/mov-mp4-pcm-float
- tests/ref/fate/mov-write-amve
- tests/ref/fate/movenc
- tests/ref/fate/prores-metadata
- tests/ref/lavf-fate/evc.mp4
- tests/ref/lavf-fate/h264.mp4
- tests/ref/lavf-fate/hevc.mp4
- tests/ref/lavf-fate/qtrle_mace6.mov
- tests/ref/lavf-fate/vvc.mp4
- tests/ref/lavf/ismv
- tests/ref/lavf/mov
- tests/ref/lavf/mov_hybrid_frag
- tests/ref/lavf/mov_rtphint
- tests/ref/lavf/mp4