[MPlayer-cvslog] r37804 - trunk/libmpcodecs/ad_mpg123.c
reimar
subversion at mplayerhq.hu
Fri Feb 26 19:14:04 CET 2016
Author: reimar
Date: Fri Feb 26 19:14:04 2016
New Revision: 37804
Log:
ad_mpg123: add check for set_format return value.
Modified:
trunk/libmpcodecs/ad_mpg123.c
Modified: trunk/libmpcodecs/ad_mpg123.c
==============================================================================
--- trunk/libmpcodecs/ad_mpg123.c Fri Feb 26 19:14:02 2016 (r37803)
+++ trunk/libmpcodecs/ad_mpg123.c Fri Feb 26 19:14:04 2016 (r37804)
@@ -331,6 +331,8 @@ static int decode_a_bit(sh_audio_t *sh,
break; /* Do not switch format during a chunk. */
ret = set_format(sh, con);
+ if (ret == MPG123_ERR || ret == MPG123_DONE)
+ break;
}
}
More information about the MPlayer-cvslog
mailing list