diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-05-27 14:48:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-27 15:50:04 +0200 |
commit | 2b3e9bbfb529e6bde238aeb511b55ebe461664c8 (patch) | |
tree | 4e7cfa774904b1cd7cdba91a5326db1ef69c3496 /libavformat/swfenc.c | |
parent | 2ae03968147b891be23ddb7c7851f1a52bfea24b (diff) | |
download | ffmpeg-2b3e9bbfb529e6bde238aeb511b55ebe461664c8.tar.gz |
avformat/mp3: skip junk at the beginning of mp3 files
Apparently it can happen that a mp3 file has junk data between id3 tag
and actual mp3 data. Skip this to avoid outputting nonsense timestamps.
(Two packets had the same timestamps, because the mp3 parser failed to
compute a frame duration.)
In this case, the junk consisted of 1044 bytes of zero, which
incidentally is the same size as normal mp3 frames in this stream. I
suspect the mp3 was edited with some tool which wiped the Xing/LAME
headers. Data near the end of the file suggests it was encoded with
"LAME3.97", but the normal Xing/LAME headers are missing. So this could
be "normal". mpg123 also attempts to skip at least 64KB of junk data by
scanning for headers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/swfenc.c')
0 files changed, 0 insertions, 0 deletions