Re: [FFmpeg-devel] [PATCH v3] avformat/mp3dec: Subtract known padding from duration

2023-08-25 Thread Ulrik Mikaelsson
Just noticed that there is a ticket https://trac.ffmpeg.org/ticket/10163 about this, that I believe is solved with this patch. Den ons 23 aug. 2023 kl 20:33 skrev Ulrik Mikaelsson : > > When an Info-tag is present, marking initial and trailing samples as > padding, those samples should not be incl

[FFmpeg-devel] [PATCH v3] avformat/mp3dec: Subtract known padding from duration

2023-08-23 Thread Ulrik Mikaelsson
When an Info-tag is present, marking initial and trailing samples as padding, those samples should not be included in the calculation of track duration. This solves a surprising user experience where converting a WAV->MP3->WAV, ffprobe will show the duration of the mp3 as slightly longer than both