summaryrefslogtreecommitdiff
path: root/libavformat/rmenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-17 07:41:19 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-03-20 20:33:05 -0400
commit447fe3369177c11a49a3d376cfa3a2be468ac913 (patch)
treeca13c805944ab0e9e976c925c2c103f00151226b /libavformat/rmenc.c
parente42500cb4f5e51aec072fe1994c367823ca36f47 (diff)
rmenc: replace avio_seek(0) with avio_tell()
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/rmenc.c')
-rw-r--r--libavformat/rmenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c
index aa11744f43..6f8b0937f3 100644
--- a/libavformat/rmenc.c
+++ b/libavformat/rmenc.c
@@ -436,7 +436,7 @@ static int rm_write_trailer(AVFormatContext *s)
if (!url_is_streamed(s->pb)) {
/* end of file: finish to write header */
- index_pos = avio_seek(pb, 0, SEEK_CUR);
+ index_pos = avio_tell(pb);
data_size = index_pos - rm->data_pos;
/* FIXME: write index */