Revision 3ee53dab

View differences:

ffmpeg.c
110 110
#define MAX_STREAMS 1024    /* arbitrary sanity check value */
111 111
#endif
112 112

  
113
#define FFM_PACKET_SIZE 4096 //XXX a duplicate of the line in ffm.h
114

  
113 115
static const char *last_asked_format = NULL;
114 116
static AVFormatContext *input_files[MAX_FILES];
115 117
static int64_t input_files_ts_offset[MAX_FILES];
ffserver.c
29 29
#include <strings.h>
30 30
#include <stdlib.h>
31 31
#include "libavformat/avformat.h"
32
#include "libavformat/ffm.h"
32 33
#include "libavformat/network.h"
33 34
#include "libavformat/os_support.h"
34 35
#include "libavformat/rtpdec.h"
libavformat/avformat.h
1508 1508
 */
1509 1509
int64_t av_gettime(void);
1510 1510

  
1511
/* ffm-specific for ffserver */
1512
#define FFM_PACKET_SIZE 4096
1513
int64_t ffm_read_write_index(int fd);
1514
int ffm_write_write_index(int fd, int64_t pos);
1515
void ffm_set_write_index(AVFormatContext *s, int64_t pos, int64_t file_size);
1516

  
1517 1511
#if FF_API_FIND_INFO_TAG
1518 1512
/**
1519 1513
 * @deprecated use av_find_info_tag in libavutil instead.
libavformat/ffm.h
28 28

  
29 29
/* The FFM file is made of blocks of fixed size */
30 30
#define FFM_HEADER_SIZE 14
31
#define FFM_PACKET_SIZE 4096
31 32
#define PACKET_ID       0x666d
32 33

  
33 34
/* each packet contains frames (which can span several packets */
......
55 56
    uint8_t packet[FFM_PACKET_SIZE];
56 57
} FFMContext;
57 58

  
59
int64_t ffm_read_write_index(int fd);
60
int ffm_write_write_index(int fd, int64_t pos);
61
void ffm_set_write_index(AVFormatContext *s, int64_t pos, int64_t file_size);
62

  
58 63
#endif /* AVFORMAT_FFM_H */

Also available in: Unified diff