Revision acfe8faf libavformat/rtp_asf.c

View differences:

libavformat/rtp_asf.c
40 40
 * min_pktsize values in the ASF file header.
41 41
 * @return 0 on success, <0 on failure (currently -1).
42 42
 */
43
static int
44
rtp_asf_fix_header(uint8_t *buf, int len)
43
static int rtp_asf_fix_header(uint8_t *buf, int len)
45 44
{
46 45
    uint8_t *p = buf, *end = buf + len;
47 46

  
......
78 77
 * on packet boundaries, such that the ASF demuxer can return
79 78
 * safely and resume business at the next packet.
80 79
 */
81
static int
82
packetizer_read(void *opaque, uint8_t *buf, int buf_size)
80
static int packetizer_read(void *opaque, uint8_t *buf, int buf_size)
83 81
{
84 82
    return AVERROR(EAGAIN);
85 83
}
86 84

  
87
static void
88
init_packetizer(ByteIOContext *pb, uint8_t *buf, int len)
85
static void init_packetizer(ByteIOContext *pb, uint8_t *buf, int len)
89 86
{
90 87
    init_put_byte(pb, buf, len, 0, NULL, packetizer_read, NULL, NULL);
91 88

  
......
118 115
    }
119 116
}
120 117

  
121
static int
122
asfrtp_parse_sdp_line (AVFormatContext *s, int stream_index,
123
                       PayloadContext *asf, const char *line)
118
static int asfrtp_parse_sdp_line(AVFormatContext *s, int stream_index,
119
                                 PayloadContext *asf, const char *line)
124 120
{
125 121
    if (av_strstart(line, "stream:", &line)) {
126 122
        RTSPState *rt = s->priv_data;
......
155 151
 *         1 when a packet was written into /p pkt, and more packets might be left;
156 152
 *        <0 when not enough data was provided to return a full packet, or on error.
157 153
 */
158
static int
159
asfrtp_parse_packet (AVFormatContext *s, PayloadContext *asf, AVStream *st,
160
                     AVPacket *pkt, uint32_t *timestamp,
161
                     const uint8_t *buf, int len, int flags)
154
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
155
                               AVStream *st, AVPacket *pkt,
156
                               uint32_t *timestamp,
157
                               const uint8_t *buf, int len, int flags)
162 158
{
163 159
    ByteIOContext *pb = &asf->pb;
164 160
    int res, mflags, len_off;
......
253 249
    return res == 1 ? -1 : res;
254 250
}
255 251

  
256
static PayloadContext *
257
asfrtp_new_context (void)
252
static PayloadContext *asfrtp_new_context(void)
258 253
{
259 254
    return av_mallocz(sizeof(PayloadContext));
260 255
}
261 256

  
262
static void
263
asfrtp_free_context (PayloadContext *asf)
257
static void asfrtp_free_context(PayloadContext *asf)
264 258
{
265 259
    if (asf->pktbuf) {
266 260
        uint8_t *p = NULL;

Also available in: Unified diff