[FFmpeg-cvslog] lavf: get rid of ffm-specific stuff in avformat.h
Anton Khirnov
git at videolan.org
Sat Apr 9 03:25:00 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Apr 8 11:21:13 2011 +0200| [3ee53dabcfd8810d01f114599617cf55e481c291] | committer: Anton Khirnov
lavf: get rid of ffm-specific stuff in avformat.h
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ee53dabcfd8810d01f114599617cf55e481c291
---
ffmpeg.c | 2 ++
ffserver.c | 1 +
libavformat/avformat.h | 6 ------
libavformat/ffm.h | 5 +++++
4 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 46adb9a..841c798 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -110,6 +110,8 @@ static const OptionDef options[];
#define MAX_STREAMS 1024 /* arbitrary sanity check value */
#endif
+#define FFM_PACKET_SIZE 4096 //XXX a duplicate of the line in ffm.h
+
static const char *last_asked_format = NULL;
static AVFormatContext *input_files[MAX_FILES];
static int64_t input_files_ts_offset[MAX_FILES];
diff --git a/ffserver.c b/ffserver.c
index eab8ae2..36cd9ce 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -29,6 +29,7 @@
#include <strings.h>
#include <stdlib.h>
#include "libavformat/avformat.h"
+#include "libavformat/ffm.h"
#include "libavformat/network.h"
#include "libavformat/os_support.h"
#include "libavformat/rtpdec.h"
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 8e18a61..5c8456f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1508,12 +1508,6 @@ int64_t parse_date(const char *datestr, int duration);
*/
int64_t av_gettime(void);
-/* ffm-specific for ffserver */
-#define FFM_PACKET_SIZE 4096
-int64_t ffm_read_write_index(int fd);
-int ffm_write_write_index(int fd, int64_t pos);
-void ffm_set_write_index(AVFormatContext *s, int64_t pos, int64_t file_size);
-
#if FF_API_FIND_INFO_TAG
/**
* @deprecated use av_find_info_tag in libavutil instead.
diff --git a/libavformat/ffm.h b/libavformat/ffm.h
index 4c088d6..89a14a5 100644
--- a/libavformat/ffm.h
+++ b/libavformat/ffm.h
@@ -28,6 +28,7 @@
/* The FFM file is made of blocks of fixed size */
#define FFM_HEADER_SIZE 14
+#define FFM_PACKET_SIZE 4096
#define PACKET_ID 0x666d
/* each packet contains frames (which can span several packets */
@@ -55,4 +56,8 @@ typedef struct FFMContext {
uint8_t packet[FFM_PACKET_SIZE];
} FFMContext;
+int64_t ffm_read_write_index(int fd);
+int ffm_write_write_index(int fd, int64_t pos);
+void ffm_set_write_index(AVFormatContext *s, int64_t pos, int64_t file_size);
+
#endif /* AVFORMAT_FFM_H */
More information about the ffmpeg-cvslog
mailing list