[Ffmpeg-devel] [PATCH] mp3 in swf broken

Aurelien Jacobs aurel
Mon Oct 23 02:00:26 CEST 2006


Hi,

I just found out that mp3 in swf files is not playing correctly anymore.
You can check it with http://samples.mplayerhq.hu/SWF/usa22.swf
It prints lots messages like this one:

[mp3 @ 0x953970]Header missing skipping one byte.
[mp3 @ 0x953970]Header missing skipping one byte.
[mp3 @ 0x953970]Header missing skipping one byte.
[mp3 @ 0x953970]Header missing skipping one byte.
[mp3 @ 0x953970]incorrect frame size
invalid new backstep 700

It's broken since r6098 which is:

------------------------------------------------------------------------
r6098 | michael | 2006-08-26 14:19:05 +0200 (Sat, 26 Aug 2006) | 4 lines

remove duplicated parser, people who pass random gibblets of the bitstream
into the decoder will have to pass it through a AVParser like for all other
codecs too
remove silly internal buffering architecture (removes 1 memcpy()
of the bitstream)
mp3on4 and mp3adu untested
------------------------------------------------------------------------

So I enabled parsing and skipped 4 bytes before reading the packet and this
solved the issue.
I will apply the attached patch if no one disagree.

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp3-in-swf.diff
Type: text/x-diff
Size: 819 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061023/52068093/attachment.diff>



More information about the ffmpeg-devel mailing list