[FFmpeg-devel] [PATCH] Don't adjust start time for MP3 files; packets are not adjusted.

Dale Curtis dalecurtis at chromium.org
Wed May 27 21:57:13 EEST 2020


On Wed, May 27, 2020 at 8:29 AM Michael Niedermayer <michael at niedermayer.cc>
wrote:

> what id like to point out here is that the audio stream no
> longer starts at the same time as the video
> also the duration from adding the durations before is
> exact but not afterwards
>

I'm not sure about the duration issue, I'd assume it's just an accounting
error since the change only affects start_time. As noted in the change
description, if you want to keep start_time adjusted for skip samples all
packet timestamps need to be changed too. Doing that broke many test cases
at the time, so we opted to just revert the patch. I.e., basically every
mp3 changes to having its first PTS be ~26ms due to the common 1152 skip
sample amount.

- dale


More information about the ffmpeg-devel mailing list