57 if (chunksize > end - p)
99 if (
av_strstart(p,
"pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) {
103 int len = strlen(p) * 6 / 8;
109 "Failed to fix invalid RTSP-MS/ASF min_pktsize\n");
133 if (stream_index < 0)
138 s->
streams[stream_index]->
id = strtol(line, NULL, 10);
175 int res, mflags, len_off;
182 int off, out_len = 0;
206 if (!(mflags & 0x40)) {
219 if (!len_off && !asf->
pktbuf &&
240 int cur_len = start_off + len_off -
off;
241 int prev_len = out_len;
244 if (
FFMIN(cur_len, len - off) < 0)
250 memcpy(asf->
buf + prev_len, buf + off,
251 FFMIN(cur_len, len - off));
278 return res == 1 ? -1 :
res;
298 #define RTP_ASF_HANDLER(n, s, t) \
299 RTPDynamicProtocolHandler ff_ms_rtp_ ## n ## _handler = { \
302 .codec_id = AV_CODEC_ID_NONE, \
303 .parse_sdp_a_line = asfrtp_parse_sdp_line, \
304 .alloc = asfrtp_new_context, \
305 .free = asfrtp_free_context, \
306 .parse_packet = asfrtp_parse_packet, \