rmenc: replace avio_seek(0) with avio_tell()
authorAnton Khirnov <anton@khirnov.net>
Thu, 17 Mar 2011 06:41:19 +0000 (07:41 +0100)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 21 Mar 2011 00:33:05 +0000 (20:33 -0400)
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/rmenc.c

index aa11744..6f8b093 100644 (file)
@@ -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 */