Lines Matching defs:asf
34 #include "asf.h"
119 PayloadContext *asf, const char *line)
154 static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
159 ByteIOContext *pb = &asf->pb;
185 av_freep(&asf->buf);
192 if (asf->pktbuf && len_off != url_ftell(asf->pktbuf)) {
194 url_close_dyn_buf(asf->pktbuf, &p);
195 asf->pktbuf = NULL;
198 if (!len_off && !asf->pktbuf &&
199 (res = url_open_dyn_buf(&asf->pktbuf)) < 0)
201 if (!asf->pktbuf)
204 put_buffer(asf->pktbuf, buf + off, len - off);
207 out_len = url_close_dyn_buf(asf->pktbuf, &asf->buf);
208 asf->pktbuf = NULL;
222 asf->buf = av_malloc(len - off);
224 memcpy(asf->buf, buf + off, len - off);
227 init_packetizer(pb, asf->buf, out_len);
257 static void asfrtp_free_context(PayloadContext *asf)
259 if (asf->pktbuf) {
261 url_close_dyn_buf(asf->pktbuf, &p);
262 asf->pktbuf = NULL;
265 av_freep(&asf->buf);
266 av_free(asf);
280 RTP_ASF_HANDLER(asf_pfv, "x-asf-pf", AVMEDIA_TYPE_VIDEO);
281 RTP_ASF_HANDLER(asf_pfa, "x-asf-pf", AVMEDIA_TYPE_AUDIO);