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;
243 if (
FFMIN(cur_len, len - off) < 0)
247 memcpy(asf->
buf + prev_len, buf + off,
248 FFMIN(cur_len, len - off));
275 return res == 1 ? -1 :
res;
295 #define RTP_ASF_HANDLER(n, s, t) \
296 RTPDynamicProtocolHandler ff_ms_rtp_ ## n ## _handler = { \
299 .codec_id = AV_CODEC_ID_NONE, \
300 .parse_sdp_a_line = asfrtp_parse_sdp_line, \
301 .alloc = asfrtp_new_context, \
302 .free = asfrtp_free_context, \
303 .parse_packet = asfrtp_parse_packet, \