[FFmpeg-devel] [PATCH] mov.c fix the duration for the last audio frame.

Michael Niedermayer michael at niedermayer.cc
Fri May 31 02:49:39 EEST 2024


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240531/59eb56a0/attachment.sig>


More information about the ffmpeg-devel mailing list