[FFmpeg-cvslog] rmenc: replace avio_seek(0) with avio_tell()

Anton Khirnov git at videolan.org
Wed Mar 23 03:03:40 CET 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Mar 17 07:41:19 2011 +0100| [447fe3369177c11a49a3d376cfa3a2be468ac913] | committer: Ronald S. Bultje

rmenc: replace avio_seek(0) with avio_tell()

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=447fe3369177c11a49a3d376cfa3a2be468ac913
---

 libavformat/rmenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c
index aa11744..6f8b093 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 */




More information about the ffmpeg-cvslog mailing list