[MPlayer-dev-eng] [PATCH] fix mpg123 resync (for massive seeking)
Thomas Orgis
thomas-forum at orgis.org
Thu May 3 08:30:02 CEST 2012
Am Thu, 3 May 2012 00:22:52 +0300
schrieb Ivan Kalvachev <ikalvachev at gmail.com>:
> However sometimes I see some debug messages and parser errors. (no
> audible artifacts or skips, it resumes normal play as it should)
Do you mean
trying to decode obviously invalid header
Note: missing %d bytes in bit reservoir for frame %li
? The first is a harmless message that trunk mg123 printed for a while,
but which is gone in released 1.14.0, the second just means that one
started decoding in the middle of the stream where a frame depends on
bits from previous frames and cannot be properly decoded if it's the
first in line.
> We talked about the possibility of avi demuxer returning garbage,
> that could confuse the mpg123 parser. In your investigation have you
> found any clues if this might be true?
Not really, mpg123 1.14.0 was wholly silent with the test video.
> Was mpg123_getformat() confused
> by completely normal packages?
The confusion was not about the packages themselves, but about the
question if they were feed to the decoder when needed /
mpg123_getformat() expected more data without reason.
> Is it possible that e.g. packets cut mp3 frames at strange places
> (e.g. at half) and this causes the problems.
That would not matter to mpg123: You can feed it 1-byte blocks, if you
want. It is a full bitstream in, audio byte stream out decoder.
Now, what errors do you see? On which mpg123 version?
Alrighty then,
Thomas
-------------- 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/20120503/08b7e659/attachment.asc>
More information about the MPlayer-dev-eng
mailing list