summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorKarsten Otto <ottoka@posteo.de>2018-07-14 11:20:46 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-07-14 19:04:48 +0200
commitc5329d64b1264ef1431732aad6f5b08d0c4b55f4 (patch)
tree4f5b2cee7fccf20ad9e4bd91af4c9183c7f3a758 /libavfilter
parent181435a4de6e38e0a15ddaf16de9a157ef41cb18 (diff)
aadec: improve seeking in mp3 content
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. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
0 files changed, 0 insertions, 0 deletions