# HG changeset patch # User diego # Date 1279033894 0 # Node ID 796b778e241100f6569a604180f78dbcdf18312c # Parent 02d92c137407176da6e69c4aad005529ec501699 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 diff -r 02d92c137407 -r 796b778e2411 libmpcodecs/ad_mpg123.c --- a/libmpcodecs/ad_mpg123.c Tue Jul 13 14:51:31 2010 +0000 +++ b/libmpcodecs/ad_mpg123.c Tue Jul 13 15:11:34 2010 +0000 @@ -210,6 +210,9 @@ #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