Lines Matching defs:asf
34 #include "asf.h"
131 PayloadContext *asf, const char *line)
170 static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
176 AVIOContext *pb = &asf->pb;
189 av_freep(&asf->buf);
215 if (asf->pktbuf && len_off != avio_tell(asf->pktbuf)) {
217 avio_close_dyn_buf(asf->pktbuf, &p);
218 asf->pktbuf = NULL;
221 if (!len_off && !asf->pktbuf &&
222 (res = avio_open_dyn_buf(&asf->pktbuf)) < 0)
224 if (!asf->pktbuf)
227 avio_write(asf->pktbuf, buf + off, len - off);
231 out_len = avio_close_dyn_buf(asf->pktbuf, &asf->buf);
232 asf->pktbuf = NULL;
247 if ((res = av_reallocp(&asf->buf, out_len)) < 0)
249 memcpy(asf->buf + prev_len, buf + off,
255 init_packetizer(pb, asf->buf, out_len);
285 static void asfrtp_free_context(PayloadContext *asf)
287 if (asf->pktbuf) {
289 avio_close_dyn_buf(asf->pktbuf, &p);
290 asf->pktbuf = NULL;
293 av_freep(&asf->buf);
294 av_free(asf);
308 RTP_ASF_HANDLER(asf_pfv, "x-asf-pf", AVMEDIA_TYPE_VIDEO);
309 RTP_ASF_HANDLER(asf_pfa, "x-asf-pf", AVMEDIA_TYPE_AUDIO);