On Thu, May 30, 2024 at 07:38:36PM +0000, Wang Cao via ffmpeg-devel wrote: > It is possible that the actual audio data only occupy part of the last audio frame. This can be signaled by duration in the "trun" atom. We should respect the metadata of file and set the duration correctly. > --- > libavformat/mov.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) please add a fate test thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Its not that you shouldnt use gotos but rather that you should write readable code and code with gotos often but not always is less readable