Lines Matching defs:buf
45 static int rtp_asf_fix_header(uint8_t *buf, int len)
47 uint8_t *p = buf, *end = buf + len;
85 static int packetizer_read(void *opaque, uint8_t *buf, int buf_size)
90 static void init_packetizer(FFIOContext *pb, uint8_t *buf, int len)
92 ffio_init_context(pb, buf, len, 0, NULL, packetizer_read, NULL, NULL);
96 pb->pub.buf_end = buf + len;
107 char *buf = av_mallocz(len);
110 if (!buf)
112 av_base64_decode(buf, p, len);
114 if (rtp_asf_fix_header(buf, len) < 0)
117 init_packetizer(&pb, buf, len);
127 av_free(buf);
183 uint8_t *buf;
194 const uint8_t *buf, int len, uint16_t seq,
211 av_freep(&asf->buf);
213 ffio_init_context(pb0, (uint8_t *)buf, len, 0, NULL, NULL, NULL, NULL);
244 avio_write(asf->pktbuf, buf + off, len - off);
248 out_len = avio_close_dyn_buf(asf->pktbuf, &asf->buf);
264 if ((res = av_reallocp(&asf->buf, out_len)) < 0)
266 memcpy(asf->buf + prev_len, buf + off,
272 init_packetizer(pb0, asf->buf, out_len);
300 av_freep(&asf->buf);