Revision f59d8ff8 libavformat/flvenc.c

View differences:

libavformat/flvenc.c
289 289

  
290 290
    /* write total size of tag */
291 291
    data_size= url_ftell(pb) - metadata_size_pos - 10;
292
    url_fseek(pb, metadata_size_pos, SEEK_SET);
292
    avio_seek(pb, metadata_size_pos, SEEK_SET);
293 293
    avio_wb24(pb, data_size);
294
    url_fseek(pb, data_size + 10 - 3, SEEK_CUR);
294
    avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
295 295
    avio_wb32(pb, data_size + 11);
296 296

  
297 297
    for (i = 0; i < s->nb_streams; i++) {
......
316 316
                ff_isom_write_avcc(pb, enc->extradata, enc->extradata_size);
317 317
            }
318 318
            data_size = url_ftell(pb) - pos;
319
            url_fseek(pb, -data_size - 10, SEEK_CUR);
319
            avio_seek(pb, -data_size - 10, SEEK_CUR);
320 320
            avio_wb24(pb, data_size);
321
            url_fseek(pb, data_size + 10 - 3, SEEK_CUR);
321
            avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
322 322
            avio_wb32(pb, data_size + 11); // previous tag size
323 323
        }
324 324
    }
......
346 346
    file_size = url_ftell(pb);
347 347

  
348 348
    /* update informations */
349
    url_fseek(pb, flv->duration_offset, SEEK_SET);
349
    avio_seek(pb, flv->duration_offset, SEEK_SET);
350 350
    put_amf_double(pb, flv->duration / (double)1000);
351
    url_fseek(pb, flv->filesize_offset, SEEK_SET);
351
    avio_seek(pb, flv->filesize_offset, SEEK_SET);
352 352
    put_amf_double(pb, file_size);
353 353

  
354
    url_fseek(pb, file_size, SEEK_SET);
354
    avio_seek(pb, file_size, SEEK_SET);
355 355
    return 0;
356 356
}
357 357

  

Also available in: Unified diff