Lines Matching defs:rdt
31 #include "rdt.h"
132 rdt_load_mdpr (PayloadContext *rdt, AVStream *st, int rule_nr)
152 if (!rdt->mlti_data)
154 ffio_init_context(&pb, rdt->mlti_data, rdt->mlti_data_size, 0,
176 size = rdt->mlti_data_size;
179 if (ff_rm_read_mdpr_codecdata(rdt->rmctx, &pb, st, rdt->rmst[st->index], size) < 0)
261 * [2] http://www.wireshark.org/docs/dfref/r/rdt.html and
262 * http://anonsvn.wireshark.org/viewvc/trunk/epan/dissectors/packet-rdt.c
294 rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st,
301 if (rdt->audio_pkt_cnt == 0) {
306 res = ff_rm_parse_packet (rdt->rmctx, &pb, st, rdt->rmst[st->index], len, pkt,
313 memcpy (rdt->buffer, buf + pos, len - pos);
314 rdt->rmctx->pb = avio_alloc_context (rdt->buffer, len - pos, 0,
321 rdt->audio_pkt_cnt =
322 ff_rm_retrieve_cache (rdt->rmctx, rdt->rmctx->pb,
323 st, rdt->rmst[st->index], pkt);
324 if (rdt->audio_pkt_cnt == 0 &&
326 av_freep(&rdt->rmctx->pb);
331 return rdt->audio_pkt_cnt > 0;
408 PayloadContext *rdt, const char *line)
414 rdt->mlti_data = rdt_parse_b64buf(&rdt->mlti_data_size, p);
424 if (rdt->nb_rmst < count) {
425 RMStream **rmst= av_realloc(rdt->rmst, count*sizeof(*rmst));
428 memset(rmst + rdt->nb_rmst, 0,
429 (count - rdt->nb_rmst) * sizeof(*rmst));
430 rdt->rmst = rmst;
431 rdt->nb_rmst = count;
433 rdt->rmst[s->streams[n]->index] = ff_rm_alloc_rmstream();
434 rdt_load_mdpr(rdt, s->streams[n], (n - first) * 2);
525 PayloadContext *rdt = av_mallocz(sizeof(PayloadContext));
527 int ret = avformat_open_input(&rdt->rmctx, "", &ff_rdt_demuxer, NULL);
529 av_free(rdt);
533 return rdt;
537 rdt_free_context (PayloadContext *rdt)
541 for (i = 0; i < rdt->nb_rmst; i++)
542 if (rdt->rmst[i]) {
543 ff_rm_free_rmstream(rdt->rmst[i]);
544 av_freep(&rdt->rmst[i]);
546 if (rdt->rmctx)
547 avformat_close_input(&rdt->rmctx);
548 av_freep(&rdt->mlti_data);
549 av_freep(&rdt->rmst);
550 av_free(rdt);