1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed a possible crash in remux.c on 64-bit machines

This commit is contained in:
Klaus Schmidinger 2006-12-01 14:53:11 +01:00
parent bab6955557
commit 78b78ffd64
3 changed files with 5 additions and 3 deletions

View File

@ -1113,6 +1113,7 @@ Reinhard Nissl <rnissl@gmx.de>
for implementing cDevice::ForceTransferMode() for implementing cDevice::ForceTransferMode()
for changing the behaviour when hitting the end of a recording in fast forward mode for changing the behaviour when hitting the end of a recording in fast forward mode
for suggesting to give the cRemote::CallPlugin() function a boolean return value for suggesting to give the cRemote::CallPlugin() function a boolean return value
for fixing a possible crash in remux.c on 64-bit machines
Richard Robson <richard_robson@beeb.net> Richard Robson <richard_robson@beeb.net>
for reporting freezing replay if a timer starts while in Transfer Mode from the for reporting freezing replay if a timer starts while in Transfer Mode from the

View File

@ -4995,3 +4995,4 @@ Video Disk Recorder Revision History
If your version of 'wget' doesn't support the -U option to set the user agent, If your version of 'wget' doesn't support the -U option to set the user agent,
use the new option -U of getskyepg.pl to have the information added to the URL use the new option -U of getskyepg.pl to have the information added to the URL
as a query string. as a query string.
- Fixed a possible crash in remux.c on 64-bit machines (thanks to Reinhard Nissl).

View File

@ -11,7 +11,7 @@
* The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>, * 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. * 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" #include "remux.h"
@ -389,7 +389,7 @@ bool cVideoRepacker::ScanDataForStartCodeFast(const uchar *&Data, const uchar *L
} }
Data = Limit; Data = Limit;
unsigned long *Scanner = (unsigned long *)(Data - 3); uint32_t *Scanner = (uint32_t *)(Data - 3);
scanner = ntohl(*Scanner); scanner = ntohl(*Scanner);
return false; return false;
} }
@ -615,7 +615,7 @@ bool cVideoRepacker::ScanForEndOfPictureFast(const uchar *&Data, const uchar *Li
} }
Data = Limit + 1; Data = Limit + 1;
unsigned long *LocalScanner = (unsigned long *)(Data - 4); uint32_t *LocalScanner = (uint32_t *)(Data - 4);
localScanner = ntohl(*LocalScanner); localScanner = ntohl(*LocalScanner);
return false; return false;
} }