summaryrefslogtreecommitdiffstats
path: root/libmpdemux/asf.h
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-30 23:06:18 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-30 23:06:18 +0000
commit9b4c7840b908da645e1856de29a006cc168b79a8 (patch)
tree7f546f560e649e0638147727fefa769eed0823e5 /libmpdemux/asf.h
parenta703fdaa614d54076121fa176b54eeee3be7e433 (diff)
downloadmpv-9b4c7840b908da645e1856de29a006cc168b79a8.tar.bz2
mpv-9b4c7840b908da645e1856de29a006cc168b79a8.tar.xz
fix descrambling of asf file,
where signed buffer could cause erroneous values to be filled in descrable variables, add misssing check for one of these variables and restore sign of these variables as insurance that these checks will work even in such case. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18002 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/asf.h')
-rw-r--r--libmpdemux/asf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/asf.h b/libmpdemux/asf.h
index 543e1832ee..19c588556c 100644
--- a/libmpdemux/asf.h
+++ b/libmpdemux/asf.h
@@ -216,9 +216,9 @@ typedef struct {
struct asf_priv {
ASF_header_t header;
unsigned char* packet;
- unsigned scrambling_h;
- unsigned scrambling_w;
- unsigned scrambling_b;
+ int scrambling_h;
+ int scrambling_w;
+ int scrambling_b;
unsigned packetsize;
double packetrate;
unsigned movielength;