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

2023-08-23 Thread Ulrik Mikaelsson
> > --- > > libavformat/mp3dec.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c > > index 05c13228bc..c8c3b298ab 100644 > > --- a/libavformat/mp3dec.c > > +++ b/libavformat/mp3dec.c > > @@ -350,7 +350,8 @@ static int mp3

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

2023-08-23 Thread Tomas Härdin
tis 2023-08-22 klockan 14:03 +0200 skrev 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- > >W

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

2023-08-22 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