Fixed handling of mp4 above 2G and 32bit offsets (ticket #84).

This commit is contained in:
Maxim Dounin 2012-01-16 11:03:27 +00:00
parent 2c55914a9f
commit 9572920af0

View File

@ -165,7 +165,7 @@ typedef struct {
((u_char *) (p))[7] = n4 ((u_char *) (p))[7] = n4
#define ngx_mp4_get_32value(p) \ #define ngx_mp4_get_32value(p) \
( (((u_char *) (p))[0] << 24) \ ( ((uint32_t) ((u_char *) (p))[0] << 24) \
+ ( ((u_char *) (p))[1] << 16) \ + ( ((u_char *) (p))[1] << 16) \
+ ( ((u_char *) (p))[2] << 8) \ + ( ((u_char *) (p))[2] << 8) \
+ ( ((u_char *) (p))[3]) ) + ( ((u_char *) (p))[3]) )