Revision 4f9e995a

View differences:

libavformat/movenc.c
407 407

  
408 408
static uint8_t *avc_find_startcode( uint8_t *p, uint8_t *end )
409 409
{
410
    uint8_t *a = p + 4 - ((int)p & 3);
410
    uint8_t *a = p + 4 - ((long)p & 3);
411 411

  
412 412
    for( end -= 3; p < a && p < end; p++ ) {
413 413
        if( p[0] == 0 && p[1] == 0 && p[2] == 1 )

Also available in: Unified diff