summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-26 03:47:07 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-26 03:47:07 +0000
commit979b1a0611e932b94ad6d7fb7c77a9f5ea7012c0 (patch)
treef28c6e31259878d7db05705e121a9745409b18c2 /libavformat
parentce2b665b3dec00675bd374a2ad9a4d20a86bb618 (diff)
move get_pts function to avoid useless declaration
Originally committed as revision 13415 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/ffmdec.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 706aa7d019..e7998ee996 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -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 *s,
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, offset_t pos1)
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 */