Revision a2704c97 libavformat/iff.c

View differences:

libavformat/iff.c
144 144
        const char *metadata_tag = NULL;
145 145
        chunk_id = avio_rl32(pb);
146 146
        data_size = avio_rb32(pb);
147
        orig_pos = url_ftell(pb);
147
        orig_pos = avio_tell(pb);
148 148

  
149 149
        switch(chunk_id) {
150 150
        case ID_VHDR:
......
161 161
            break;
162 162

  
163 163
        case ID_BODY:
164
            iff->body_pos = url_ftell(pb);
164
            iff->body_pos = avio_tell(pb);
165 165
            iff->body_size = data_size;
166 166
            break;
167 167

  
......
223 223
                return res;
224 224
            }
225 225
        }
226
        avio_seek(pb, data_size - (url_ftell(pb) - orig_pos) + (data_size & 1), SEEK_CUR);
226
        avio_seek(pb, data_size - (avio_tell(pb) - orig_pos) + (data_size & 1), SEEK_CUR);
227 227
    }
228 228

  
229 229
    avio_seek(pb, iff->body_pos, SEEK_SET);

Also available in: Unified diff