[FFmpeg-devel] [PATCH v7 3/3] aadec: improve seeking in mp3 content

Michael Niedermayer michael at niedermayer.cc
Sat Jul 14 23:05:32 EEST 2018


On Sat, Jul 14, 2018 at 11:20:46AM +0200, Karsten Otto wrote:
> MP3 frames may not be aligned to aa chunk boundaries. When seeking,
> calculate the expected frame offset in the target chunk. Adjust the
> timestamp and truncate the next packet accordingly.
> 
> This solution works for the majority of tested audio material. For
> some rare encodings with mp3 padding or embedded id3 tags, it will
> mispredict the correct offset, and at worst skip an extra frame.
> ---
>  libavformat/aadec.c | 19 ++++++++++++++++---
>  1 file changed, 16 insertions(+), 3 deletions(-)

will apply

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180714/ad58e500/attachment.sig>


More information about the ffmpeg-devel mailing list