diff options
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r-- | libavformat/avienc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 5aab1925be..8d9980cf46 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -124,7 +124,7 @@ static int avi_write_counters(AVFormatContext* s, int riff_id) int64_t file_size; AVCodecContext* stream; - file_size = url_ftell(pb); + file_size = avio_tell(pb); for(n = 0; n < s->nb_streams; n++) { AVIStream *avist= s->streams[n]->priv_data; @@ -201,7 +201,7 @@ static int avi_write_header(AVFormatContext *s) avio_wl32(pb, AVIF_TRUSTCKTYPE | AVIF_ISINTERLEAVED); /* flags */ else avio_wl32(pb, AVIF_TRUSTCKTYPE | AVIF_HASINDEX | AVIF_ISINTERLEAVED); /* flags */ - avi->frames_hdr_all = url_ftell(pb); /* remember this offset to fill later */ + avi->frames_hdr_all = avio_tell(pb); /* remember this offset to fill later */ avio_wl32(pb, nb_frames); /* nb frames, filled later */ avio_wl32(pb, 0); /* initial frame */ avio_wl32(pb, s->nb_streams); /* nb streams */ @@ -258,7 +258,7 @@ static int avi_write_header(AVFormatContext *s) av_set_pts_info(s->streams[i], 64, au_scale, au_byterate); avio_wl32(pb, 0); /* start */ - avist->frames_hdr_strm = url_ftell(pb); /* remember this offset to fill later */ + avist->frames_hdr_strm = avio_tell(pb); /* remember this offset to fill later */ if (url_is_streamed(pb)) avio_wl32(pb, AVI_MAX_RIFF_SIZE); /* FIXME: this may be broken, but who cares */ else @@ -419,7 +419,7 @@ static int avi_write_ix(AVFormatContext *s) ix_tag[3] = '0' + i; /* Writing AVI OpenDML leaf index chunk */ - ix = url_ftell(pb); + ix = avio_tell(pb); ffio_wfourcc(pb, ix_tag); /* ix?? */ avio_wl32(pb, avist->indexes.entry * 8 + 24); /* chunk size */ @@ -439,7 +439,7 @@ static int avi_write_ix(AVFormatContext *s) (ie->flags & 0x10 ? 0 : 0x80000000)); } put_flush_packet(pb); - pos = url_ftell(pb); + pos = avio_tell(pb); /* Updating one entry in the AVI OpenDML master index */ avio_seek(pb, avist->indexes.indx_start - 8, SEEK_SET); @@ -533,7 +533,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt) // Make sure to put an OpenDML chunk when the file size exceeds the limits if (!url_is_streamed(pb) && - (url_ftell(pb) - avi->riff_start > AVI_MAX_RIFF_SIZE)) { + (avio_tell(pb) - avi->riff_start > AVI_MAX_RIFF_SIZE)) { avi_write_ix(s); ff_end_tag(pb, avi->movi_list); @@ -567,7 +567,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt) } idx->cluster[cl][id].flags = flags; - idx->cluster[cl][id].pos = url_ftell(pb) - avi->movi_list; + idx->cluster[cl][id].pos = avio_tell(pb) - avi->movi_list; idx->cluster[cl][id].len = size; idx->entry++; } @@ -600,7 +600,7 @@ static int avi_write_trailer(AVFormatContext *s) ff_end_tag(pb, avi->movi_list); ff_end_tag(pb, avi->riff_start); - file_size = url_ftell(pb); + file_size = avio_tell(pb); avio_seek(pb, avi->odml_list - 8, SEEK_SET); ffio_wfourcc(pb, "LIST"); /* Making this AVI OpenDML one */ avio_seek(pb, 16, SEEK_CUR); |