Revision 8ecdab8f

View differences:

libavformat/matroskadec.c
1386 1386
                    case MATROSKA_ID_TAGS: {
1387 1387
                        uint32_t level_up = matroska->level_up;
1388 1388
                        offset_t before_pos;
1389
                        uint64_t length;
1390 1389
                        MatroskaLevel level;
1391 1390

  
1392 1391
                        /* remember the peeked ID and the current position */
......
1448 1447
                        /* remove dummy level */
1449 1448
                        if (dummy_level)
1450 1449
                            while (matroska->num_levels) {
1451
                                matroska->num_levels--;
1452
                                length =
1453
                                  matroska->levels[matroska->num_levels].length;
1450
                                uint64_t length = matroska->levels[--matroska->num_levels].length;
1454 1451
                                if (length == (uint64_t)-1)
1455 1452
                                    break;
1456 1453
                            }

Also available in: Unified diff