Revision e356fc57 libavformat/vocdec.c

View differences:

libavformat/vocdec.c
45 45
    int header_size;
46 46
    AVStream *st;
47 47

  
48
    url_fskip(pb, 20);
48
    avio_seek(pb, 20, SEEK_CUR);
49 49
    header_size = avio_rl16(pb) - 22;
50 50
    if (header_size != 4) {
51 51
        av_log(s, AV_LOG_ERROR, "unknown header size: %d\n", header_size);
52 52
        return AVERROR(ENOSYS);
53 53
    }
54
    url_fskip(pb, header_size);
54
    avio_seek(pb, header_size, SEEK_CUR);
55 55
    st = av_new_stream(s, 0);
56 56
    if (!st)
57 57
        return AVERROR(ENOMEM);
......
114 114
            dec->bits_per_coded_sample = avio_r8(pb);
115 115
            dec->channels = avio_r8(pb);
116 116
            tmp_codec = avio_rl16(pb);
117
            url_fskip(pb, 4);
117
            avio_seek(pb, 4, SEEK_CUR);
118 118
            voc->remaining_size -= 12;
119 119
            max_size -= 12;
120 120
            break;
121 121

  
122 122
        default:
123
            url_fskip(pb, voc->remaining_size);
123
            avio_seek(pb, voc->remaining_size, SEEK_CUR);
124 124
            max_size -= voc->remaining_size;
125 125
            voc->remaining_size = 0;
126 126
            break;

Also available in: Unified diff