summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-13 15:11:34 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:44 +0200
commitf1773d911a1e515f3831ac4f3b7209dadd006ccb (patch)
treef4bc9e4dce33757bf420f57e346aeb8558847a1e /libmpcodecs
parent3f413403e808a36bce9ab80025f49249b12814e4 (diff)
downloadmpv-f1773d911a1e515f3831ac4f3b7209dadd006ccb.tar.bz2
mpv-f1773d911a1e515f3831ac4f3b7209dadd006ccb.tar.xz
ad_mpeg123: Enable robust resync
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31732 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_mpg123.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/ad_mpg123.c b/libmpcodecs/ad_mpg123.c
index cc2787f305..4a8507fe4d 100644
--- a/libmpcodecs/ad_mpg123.c
+++ b/libmpcodecs/ad_mpg123.c
@@ -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