Revision 45a8a02a libavformat/matroskadec.c

View differences:

libavformat/matroskadec.c
831 831
                     return ebml_parse_nest(matroska, syntax->def.n, data);
832 832
    case EBML_PASS:  return ebml_parse_id(matroska, syntax->def.n, id, data);
833 833
    case EBML_STOP:  return 1;
834
    default:         return avio_seek(pb,length,SEEK_CUR)<0 ? AVERROR(EIO) : 0;
834
    default:         return avio_skip(pb,length)<0 ? AVERROR(EIO) : 0;
835 835
    }
836 836
    if (res == AVERROR_INVALIDDATA)
837 837
        av_log(matroska->ctx, AV_LOG_ERROR, "Invalid element\n");
......
1393 1393
            int flavor;
1394 1394
            ffio_init_context(&b, track->codec_priv.data,track->codec_priv.size,
1395 1395
                          0, NULL, NULL, NULL, NULL);
1396
            avio_seek(&b, 22, SEEK_CUR);
1396
            avio_skip(&b, 22);
1397 1397
            flavor                       = avio_rb16(&b);
1398 1398
            track->audio.coded_framesize = avio_rb32(&b);
1399
            avio_seek(&b, 12, SEEK_CUR);
1399
            avio_skip(&b, 12);
1400 1400
            track->audio.sub_packet_h    = avio_rb16(&b);
1401 1401
            track->audio.frame_size      = avio_rb16(&b);
1402 1402
            track->audio.sub_packet_size = avio_rb16(&b);

Also available in: Unified diff