summaryrefslogtreecommitdiffstats
path: root/extra/mplayer/asmrules_fix_20061231.diff
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-10-14 21:56:25 +0200
committertnut <thierryn1 at hispeed dot ch>2010-10-14 21:56:25 +0200
commit346b97bc8b08907409c6c6120cab3f1d6c4583f4 (patch)
tree30e321c0cf6f01c75fa5adb020de26b3683088f5 /extra/mplayer/asmrules_fix_20061231.diff
parentc7614c60a4c2fc7a621b8bb58609eeab4a1efa62 (diff)
downloadnutyx-pakxe-346b97bc8b08907409c6c6120cab3f1d6c4583f4.tar.gz
nutyx-pakxe-346b97bc8b08907409c6c6120cab3f1d6c4583f4.tar.bz2
nutyx-pakxe-346b97bc8b08907409c6c6120cab3f1d6c4583f4.tar.xz
nutyx-pakxe-346b97bc8b08907409c6c6120cab3f1d6c4583f4.zip
mplayer, port nettoyé
Diffstat (limited to 'extra/mplayer/asmrules_fix_20061231.diff')
-rw-r--r--extra/mplayer/asmrules_fix_20061231.diff45
1 files changed, 0 insertions, 45 deletions
diff --git a/extra/mplayer/asmrules_fix_20061231.diff b/extra/mplayer/asmrules_fix_20061231.diff
deleted file mode 100644
index 530a4eac2..000000000
--- a/extra/mplayer/asmrules_fix_20061231.diff
+++ /dev/null
@@ -1,45 +0,0 @@
---- stream/realrtsp/asmrp.c (revision 20381)
-+++ stream/realrtsp/asmrp.c (working copy)
-@@ -40,6 +40,7 @@
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-+#include "asmrp.h"
-
- /*
- #define LOG
-@@ -645,8 +646,10 @@
- #ifdef LOG
- printf ("rule #%d is true\n", rule_num);
- #endif
-- matches[num_matches] = rule_num;
-- num_matches++;
-+ if(num_matches < MAX_RULEMATCHES - 1)
-+ matches[num_matches++] = rule_num;
-+ else
-+ printf("Ignoring matched asm rule %d, too many matched rules.\n", rule_num);
- }
-
- rule_num++;
---- stream/realrtsp/real.c (revision 20381)
-+++ stream/realrtsp/real.c (working copy)
-@@ -271,7 +271,7 @@
- int j=0;
- int n;
- char b[64];
-- int rulematches[16];
-+ int rulematches[MAX_RULEMATCHES];
-
- #ifdef LOG
- printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth);
---- stream/realrtsp/asmrp.h (revision 20381)
-+++ stream/realrtsp/asmrp.h (working copy)
-@@ -40,6 +40,8 @@
- #ifndef HAVE_ASMRP_H
- #define HAVE_ASMRP_H
-
-+#define MAX_RULEMATCHES 16
-+
- int asmrp_match (const char *rules, int bandwidth, int *matches) ;
-
- #endif