Revision e75e603c

View differences:

libavformat/rmdec.c
536 536

  
537 537
            if(state > (unsigned)0xFFFF || state < 12)
538 538
                continue;
539
            len=state;
539
            len=state - 12;
540 540
            state= 0xFFFFFFFF;
541 541

  
542 542
            num = get_be16(pb);
543 543
            *timestamp = get_be32(pb);
544 544
            res= get_byte(pb); /* reserved */
545 545
            *flags = get_byte(pb); /* flags */
546

  
547

  
548
            len -= 12;
549 546
        }
550 547
        for(i=0;i<s->nb_streams;i++) {
551 548
            st = s->streams[i];

Also available in: Unified diff