X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Flive555.cpp;h=20f46061f046523afd78c3508f31f3d503cef7e6;hb=7a5570ddfbedf8304c56847d8cfd1d88d0b85e17;hp=7ab9e9486a4ef4db25a80bb37e763135147012ec;hpb=b55763db1328128715cdb9a4ce8063f7d3a8f2b4;p=vlc diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp index 7ab9e9486a..20f46061f0 100644 --- a/modules/demux/live555.cpp +++ b/modules/demux/live555.cpp @@ -1516,8 +1516,8 @@ static void StreamRead( void *p_private, unsigned int i_size, uint8_t *endpos = (uint8_t*)qtRTPSource->qtState.sdAtom + qtRTPSource->qtState.sdAtomSize; while (pos+8 < endpos) { - unsigned atomLength = pos[0]<<24 | pos[1]<<16 | pos[2]<<8 | pos[3]; - if( atomLength == 0 || atomLength > endpos-pos) break; + unsigned int atomLength = pos[0]<<24 | pos[1]<<16 | pos[2]<<8 | pos[3]; + if( atomLength == 0 || atomLength > (unsigned int)(endpos-pos)) break; if( memcmp(pos+4, "avcC", 4) == 0 && atomLength > 8 && atomLength <= INT_MAX )