Lines Matching defs:asf
33 #include "asf.h"
122 if (!(iformat = av_find_input_format("asf")))
153 PayloadContext *asf, const char *line)
191 static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
197 FFIOContext *const pb0 = &asf->pb;
211 av_freep(&asf->buf);
235 if (asf->pktbuf && len_off != avio_tell(asf->pktbuf)) {
236 ffio_free_dyn_buf(&asf->pktbuf);
238 if (!len_off && !asf->pktbuf &&
239 (res = avio_open_dyn_buf(&asf->pktbuf)) < 0)
241 if (!asf->pktbuf)
244 avio_write(asf->pktbuf, buf + off, len - off);
248 out_len = avio_close_dyn_buf(asf->pktbuf, &asf->buf);
249 asf->pktbuf = NULL;
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);
297 static void asfrtp_close_context(PayloadContext *asf)
299 ffio_free_dyn_buf(&asf->pktbuf);
300 av_freep(&asf->buf);
314 RTP_ASF_HANDLER(asf_pfv, "x-asf-pf", AVMEDIA_TYPE_VIDEO);
315 RTP_ASF_HANDLER(asf_pfa, "x-asf-pf", AVMEDIA_TYPE_AUDIO);