[FFmpeg-devel] [PATCH 3/5] mp3dec: parse initial silence padding information from lame tag
Dale Curtis
dalecurtis at chromium.org
Tue Jul 24 00:54:59 CEST 2012
On Wed, Jul 4, 2012 at 2:15 PM, Michael Niedermayer <michaelni at gmx.at>wrote:
> And pass the information on to the lavf core.
>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavformat/mp3dec.c | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
Looks like this changed (broke?) dts/pts after seek-to-zero on some mp3
files:
$ libavformat/seek-test sync1.mp3 -frames 10 -seekback 0 | head -n 10
[mp3 @ 0x33da260] max_analyze_duration 5000000 reached at 5015510
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 417 size:
626
ret: 0 st: 0 flags:1 dts: 0.026122 pts: 0.026122 pos: -1 size:
313
ret: 0 st: 0 flags:1 dts: 0.052245 pts: 0.052245 pos: -1 size:
313
ret: 0 st: 0 flags:1 dts: 0.078367 pts: 0.078367 pos: 1441 size:
104
ret: 0 st: 0 flags:1 dts: 0.104490 pts: 0.104490 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.130612 pts: 0.130612 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.156735 pts: 0.156735 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.182857 pts: 0.182857 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.208980 pts: 0.208980 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.235102 pts: 0.235102 pos: -1 size:
104
$ libavformat/seek-test sync1.mp3 -frames 10 | head -n 10
[mp3 @ 0x2bd0260] max_analyze_duration 5000000 reached at 5015510
ret: 0 st: 0 flags:1 dts:-0.025057 pts:-0.025057 pos: 417 size:
626
ret: 0 st: 0 flags:1 dts: 0.001066 pts: 0.001066 pos: -1 size:
313
ret: 0 st: 0 flags:1 dts: 0.027188 pts: 0.027188 pos: -1 size:
313
ret: 0 st: 0 flags:1 dts: 0.053311 pts: 0.053311 pos: 1441 size:
104
ret: 0 st: 0 flags:1 dts: 0.079433 pts: 0.079433 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.105556 pts: 0.105556 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.131678 pts: 0.131678 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.157800 pts: 0.157800 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.183923 pts: 0.183923 pos: -1 size:
104
ret: 0 st: 0 flags:1 dts: 0.210045 pts: 0.210045 pos: -1 size:
104
Test file here,
http://commondatastorage.googleapis.com/dalecurtis-shared/sync1.mp3
- dale
More information about the ffmpeg-devel
mailing list