• Dale Curtis's avatar
    lavf/mp3dec: don't adjust start time; packets are not adjusted. · 460132c9
    Dale Curtis authored
    7546ac2f made it so that the start_time for mp3 files is
    adjusted for skip_samples. However, this appears incorrect because
    subsequent packet timestamps are not adjusted and skip_samples are
    applied by deleting data from a packet without changing the timestamp.
    
    E.g., we are told the start_time is ~25ms and we get a packet with a
    timestamp of 0 that has had the skip_samples discarded from it. As such
    rendering engines may incorrectly discard everything prior to the
    25ms thinking that is where playback should officially start. Since the
    samples were deleted without adjusting timestamps though, the true
    start_time is still 0.
    
    Other formats like MP4 with edit lists will adjust both the start
    time and the timestamps of subsequent packets to avoid this issue.
    Signed-off-by: 's avatarDale Curtis <dalecurtis@chromium.org>
    Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
    460132c9
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...