summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-12-01 14:53:11 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-12-01 14:53:11 +0100
commit78b78ffd64d18f24a022abfa9f003d61f96152d5 (patch)
tree69494654e0d5b1b4964b640340f05ccacf16f303 /remux.c
parentbab6955557830c25e59433a9127c5f3b4ac1b387 (diff)
downloadvdr-78b78ffd64d18f24a022abfa9f003d61f96152d5.tar.gz
vdr-78b78ffd64d18f24a022abfa9f003d61f96152d5.tar.bz2
Fixed a possible crash in remux.c on 64-bit machines
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remux.c b/remux.c
index 7f2c79d4..da805b76 100644
--- a/remux.c
+++ b/remux.c
@@ -11,7 +11,7 @@
* The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>,
* and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de.
*
- * $Id: remux.c 1.56 2006/04/17 11:00:00 kls Exp $
+ * $Id: remux.c 1.57 2006/12/01 14:46:25 kls Exp $
*/
#include "remux.h"
@@ -389,7 +389,7 @@ bool cVideoRepacker::ScanDataForStartCodeFast(const uchar *&Data, const uchar *L
}
Data = Limit;
- unsigned long *Scanner = (unsigned long *)(Data - 3);
+ uint32_t *Scanner = (uint32_t *)(Data - 3);
scanner = ntohl(*Scanner);
return false;
}
@@ -615,7 +615,7 @@ bool cVideoRepacker::ScanForEndOfPictureFast(const uchar *&Data, const uchar *Li
}
Data = Limit + 1;
- unsigned long *LocalScanner = (unsigned long *)(Data - 4);
+ uint32_t *LocalScanner = (uint32_t *)(Data - 4);
localScanner = ntohl(*LocalScanner);
return false;
}