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

Aurelien Jacobs aurel
Wed Oct 25 22:05:41 CEST 2006


On Mon, 23 Oct 2006 02:00:26 +0200
Aurelien Jacobs <aurel at gnuage.org> wrote:

> 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.

Applied.

Aurel




More information about the ffmpeg-devel mailing list