Revision bf252f7f

View differences:

libavformat/mov.c
1443 1443
            get_be32(pb); // type
1444 1444
            get_be32(pb); // unknown
1445 1445
            str_size = data_size - 16;
1446
            atom.size -= 16;
1446 1447
        } else return 0;
1447 1448
    } else {
1448 1449
        str_size = get_be16(pb); // string length
1449 1450
        get_be16(pb); // language
1451
        atom.size -= 4;
1450 1452
    }
1451 1453
    switch (atom.type) {
1452 1454
    case MKTAG(0xa9,'n','a','m'):
......
1464 1466
    }
1465 1467
    if (!str)
1466 1468
        return 0;
1467
    get_buffer(pb, str, FFMIN(size, str_size));
1468
    dprintf(c->fc, "%.4s %s\n", (char*)&atom.type, str);
1469
    if (atom.size < 0)
1470
        return -1;
1471

  
1472
    get_buffer(pb, str, FFMIN3(size, str_size, atom.size));
1473
    dprintf(c->fc, "%.4s %s %d %lld\n", (char*)&atom.type, str, str_size, atom.size);
1469 1474
    return 0;
1470 1475
}
1471 1476

  

Also available in: Unified diff