patch-playercode_mplayer_c 485 B

12345678910111213141516
  1. $OpenBSD: patch-playercode_mplayer_c,v 1.8 2016/03/26 15:58:51 awolk Exp $
  2. --- playercode/mplayer.c.orig Mon Apr 27 04:51:00 2015
  3. +++ playercode/mplayer.c Fri Mar 18 07:39:21 2016
  4. @@ -368,9 +368,9 @@ static SWORD StartEnvelope(ENVPR *t,UBYTE flg,UBYTE pt
  5. }
  6. /* Fit in the envelope, still */
  7. - if (t->a >= t->pts)
  8. + if (t->a >= t->pts && t->pts != 0)
  9. t->a = t->pts - 1;
  10. - if (t->b >= t->pts)
  11. + if (t->b >= t->pts && t->pts != 0)
  12. t->b = t->pts-1;
  13. return t->env[t->a].val;