Mercurial > libavformat.hg
changeset 3963:dbe779f54647 libavformat
Use parse_packet vfunc in RTPDynamicProtocolHandler instead of hardcoding
the use of rdt_parse_packet(). See "RDT/Realmedia patches #2" thread on ML.
author | rbultje |
---|---|
date | Wed, 01 Oct 2008 12:38:41 +0000 |
parents | 72efef66f566 |
children | 66a7b9ab9e09 |
files | rdt.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rdt.c Wed Oct 01 12:37:07 2008 +0000 +++ b/rdt.c Wed Oct 01 12:38:41 2008 +0000 @@ -211,10 +211,13 @@ uint32_t timestamp; int rv= 0; + if (!s->parse_packet) + return -1; + if (!buf) { /* return the next packets, if any */ timestamp= 0; ///< Should not be used if buf is NULL, but should be set to the timestamp of the packet returned.... - rv= rdt_parse_packet(s, pkt, ×tamp, NULL, 0, flags); + rv= s->parse_packet(s, pkt, ×tamp, NULL, 0, flags); return rv; } @@ -232,7 +235,7 @@ len -= rv; s->seq = seq; - rv = rdt_parse_packet(s, pkt, ×tamp, buf, len, flags); + rv = s->parse_packet(s, pkt, ×tamp, buf, len, flags); return rv; } @@ -313,7 +316,8 @@ CODEC_ID_NONE, \ rdt_parse_sdp_line, \ rdt_new_extradata, \ - rdt_free_extradata \ + rdt_free_extradata, \ + rdt_parse_packet \ }; RDT_HANDLER(live_video, "x-pn-multirate-realvideo-live", CODEC_TYPE_VIDEO);