Mercurial > mplayer.hg
changeset 31666:796b778e2411
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
author | diego |
---|---|
date | Tue, 13 Jul 2010 15:11:34 +0000 |
parents | 02d92c137407 |
children | f5d48f0e33c3 |
files | libmpcodecs/ad_mpg123.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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