[FFmpeg-cvslog] r13415 - trunk/libavformat/ffmdec.c
bcoudurier
subversion
Mon May 26 05:47:07 CEST 2008
Author: bcoudurier
Date: Mon May 26 05:47:07 2008
New Revision: 13415
Log:
move get_pts function to avoid useless declaration
Modified:
trunk/libavformat/ffmdec.c
Modified: trunk/libavformat/ffmdec.c
==============================================================================
--- trunk/libavformat/ffmdec.c (original)
+++ trunk/libavformat/ffmdec.c Mon May 26 05:47:07 2008
@@ -23,8 +23,6 @@
#include "ffm.h"
#include <unistd.h>
-static int64_t get_pts(AVFormatContext *s, offset_t pos);
-
static int ffm_is_avail_data(AVFormatContext *s, int size)
{
FFMContext *ffm = s->priv_data;
@@ -109,6 +107,19 @@ static int ffm_read_data(AVFormatContext
return size1 - size;
}
+static int64_t get_pts(AVFormatContext *s, offset_t pos)
+{
+ ByteIOContext *pb = s->pb;
+ int64_t pts;
+
+ ffm_seek1(s, pos);
+ url_fskip(pb, 4);
+ pts = get_be64(pb);
+#ifdef DEBUG_SEEK
+ printf("pts=%0.6f\n", pts / 1000000.0);
+#endif
+ return pts;
+}
static void adjust_write_index(AVFormatContext *s)
{
@@ -376,20 +387,6 @@ static void ffm_seek1(AVFormatContext *s
url_fseek(pb, pos, SEEK_SET);
}
-static int64_t get_pts(AVFormatContext *s, offset_t pos)
-{
- ByteIOContext *pb = s->pb;
- int64_t pts;
-
- ffm_seek1(s, pos);
- url_fskip(pb, 4);
- pts = get_be64(pb);
-#ifdef DEBUG_SEEK
- printf("pts=%0.6f\n", pts / 1000000.0);
-#endif
- return pts;
-}
-
/* seek to a given time in the file. The file read pointer is
positioned at or before pts. XXX: the following code is quite
approximative */
More information about the ffmpeg-cvslog
mailing list