[MPlayer-dev-eng] [PATCH] fix mpg123 resync (for massive seeking)

Thomas Orgis thomas-forum at orgis.org
Mon Apr 30 11:18:17 CEST 2012


Hi,

Ivan noticed that, on some files, wild seeking can provoke hangup of
the mpg123 decoder. I tracked that down to mpg123_getformat()
triggering premature parsing of the next frame which may have not
been provided yet. I fixed the offending code in mpg123 for the upcoming
release and also prepared attached patch that prevents this from the
mplayer side.

As a bonus, it actually simplifies the code by avoiding unnecessary
calls to mpg123_getformat() --- 12 lines less, yay! ;-)

Please test (Ivan with the special trigger video) and apply.


Alrighty then,

Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpg123_fix_resync.patch
Type: text/x-patch
Size: 2184 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120430/53746f65/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120430/53746f65/attachment.asc>


More information about the MPlayer-dev-eng mailing list