[MPlayer-cvslog] r31732 - trunk/libmpcodecs/ad_mpg123.c
diego
subversion at mplayerhq.hu
Tue Jul 13 17:11:35 CEST 2010
Author: diego
Date: Tue Jul 13 17:11:34 2010
New Revision: 31732
Log:
Enable robust resync for mpg123 decoder.
This prevents the decoder from giving up give after long pieces of invalid
data, for example during transmission errors with DVB-T and similar.
patch by Thomas Orgis, thomas-forum orgis org
Modified:
trunk/libmpcodecs/ad_mpg123.c
Modified: trunk/libmpcodecs/ad_mpg123.c
==============================================================================
--- trunk/libmpcodecs/ad_mpg123.c Tue Jul 13 16:51:31 2010 (r31731)
+++ trunk/libmpcodecs/ad_mpg123.c Tue Jul 13 17:11:34 2010 (r31732)
@@ -210,6 +210,9 @@ static int preinit(sh_audio_t *sh)
#ifdef AD_MPG123_SEEKBUFFER
mpg123_param(con->handle, MPG123_ADD_FLAGS, 0x100, 0.0);
#endif
+ /* Do not bail out on malformed streams at all.
+ * MPlayer does not handle a decoder throwing the towel on crappy input. */
+ mpg123_param(con->handle, MPG123_RESYNC_LIMIT, -1, 0.0);
/* Open decisions: Configure libmpg123 to force encoding (or stay open about
* library builds that support only float or int32 output), (de)configure
More information about the MPlayer-cvslog
mailing list