]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ffm.h
apetag: add proper support for binary tags
[ffmpeg] / libavformat / ffm.h
index 4c088d6912a06bdab6d052580ed7b9902a9180ac..6ce5e0408ceff543df3dfc27338839f2b8345f27 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * FFM (ffserver live feed) common header
+ * FFM (avserver live feed) common header
  * Copyright (c) 2001 Fabrice Bellard
  *
  * This file is part of Libav.
@@ -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 */