[MPlayer-cvslog] r27302 - trunk/libmpdemux/demux_asf.c

compn tempn at twmi.rr.com
Wed Jul 16 20:08:43 CEST 2008


On Wed, 16 Jul 2008 18:43:40 +0200 (CEST), reimar wrote:
>Author: reimar
>Date: Wed Jul 16 18:43:40 2008
>New Revision: 27302
>
>Log:
>Make sure demuxed ASF packet is properly padded after descrambling
>
>
>Modified:
>   trunk/libmpdemux/demux_asf.c
>
>Modified: trunk/libmpdemux/demux_asf.c
>==============================================================================
>--- trunk/libmpdemux/demux_asf.c	(original)
>+++ trunk/libmpdemux/demux_asf.c	Wed Jul 16 18:43:40 2008
>@@ -50,9 +50,12 @@ static inline int check_varlen(uint8_t *
> }
> 
> static void asf_descrambling(unsigned char **src,unsigned len, struct asf_priv* asf){
>-  unsigned char *dst=malloc(len);
>+  unsigned char *dst;
>   unsigned char *s2=*src;
>   unsigned i=0,x,y;
>+  if (len > UINT_MAX - FF_INPUT_BUFFER_PADDING_SIZE)


[13:35] <Gudy> I get an error compiling the latest svn (which has a few local changes) with : libmpdemux/demux_asf.c: In function 'asf_descrambling':
[13:35] <Gudy> libmpdemux/demux_asf.c:56: error: 'UINT_MAX' undeclared (first use in this function) . anyone else is having trouble?
[13:36] <Gudy> which seems to be defined in limits.h, included by common.h, which does not seems to be included by demux_asf ...
[13:50] <Gudy> I added #include <limits.h> and it seems to be compiling now

[13:44] <MordEth> i'm getting this error with the latest SVN:
[13:44] <MordEth> libmpdemux/demux_asf.c: In function 'asf_descrambling':
[13:44] <MordEth> libmpdemux/demux_asf.c:56: error: 'UINT_MAX' undeclared (first use in this function)



More information about the MPlayer-cvslog mailing list