Revision f59d8ff8 libavformat/wc3movie.c

View differences:

libavformat/wc3movie.c
101 101
    wc3->vpkt.data = NULL; wc3->vpkt.size = 0;
102 102

  
103 103
    /* skip the first 3 32-bit numbers */
104
    url_fseek(pb, 12, SEEK_CUR);
104
    avio_seek(pb, 12, SEEK_CUR);
105 105

  
106 106
    /* traverse through the chunks and load the header information before
107 107
     * the first BRCH tag */
......
114 114
        case SOND_TAG:
115 115
        case INDX_TAG:
116 116
            /* SOND unknown, INDX unnecessary; ignore both */
117
            url_fseek(pb, size, SEEK_CUR);
117
            avio_seek(pb, size, SEEK_CUR);
118 118
            break;
119 119

  
120 120
        case PC__TAG:
121 121
            /* number of palettes, unneeded */
122
            url_fseek(pb, 12, SEEK_CUR);
122
            avio_seek(pb, 12, SEEK_CUR);
123 123
            break;
124 124

  
125 125
        case BNAM_TAG:
......
142 142

  
143 143
        case PALT_TAG:
144 144
            /* one of several palettes */
145
            url_fseek(pb, -8, SEEK_CUR);
145
            avio_seek(pb, -8, SEEK_CUR);
146 146
            av_append_packet(pb, &wc3->vpkt, 8 + PALETTE_SIZE);
147 147
            break;
148 148

  
......
219 219

  
220 220
        case SHOT_TAG:
221 221
            /* load up new palette */
222
            url_fseek(pb, -8, SEEK_CUR);
222
            avio_seek(pb, -8, SEEK_CUR);
223 223
            av_append_packet(pb, &wc3->vpkt, 8 + 4);
224 224
            break;
225 225

  
226 226
        case VGA__TAG:
227 227
            /* send out video chunk */
228
            url_fseek(pb, -8, SEEK_CUR);
228
            avio_seek(pb, -8, SEEK_CUR);
229 229
            ret= av_append_packet(pb, &wc3->vpkt, 8 + size);
230 230
            // ignore error if we have some data
231 231
            if (wc3->vpkt.size > 0)
......
240 240
        case TEXT_TAG:
241 241
            /* subtitle chunk */
242 242
#if 0
243
            url_fseek(pb, size, SEEK_CUR);
243
            avio_seek(pb, size, SEEK_CUR);
244 244
#else
245 245
            if ((unsigned)size > sizeof(text) || (ret = avio_read(pb, text, size)) != size)
246 246
                ret = AVERROR(EIO);

Also available in: Unified diff