Lines Matching refs:buff
60 static void sdp_write_address(char *buff, int size, const char *dest_addr,
69 av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl);
71 av_strlcatf(buff, size, "c=IN %s %s\r\n", dest_type, dest_addr);
76 static void sdp_write_header(char *buff, int size, struct sdp_session_level *s)
78 av_strlcatf(buff, size, "v=%d\r\n"
84 sdp_write_address(buff, size, s->dst_addr, s->dst_type, s->ttl);
85 av_strlcatf(buff, size, "t=%d %d\r\n"
143 char buff[64];
145 if (av_find_info_tag(buff, sizeof(buff), "ttl", p)) {
146 *ttl = strtol(buff, NULL, 10);
511 static int sdp_write_media_attributes(char *buff, int size, const AVStream *st,
520 av_strlcatf(buff, size, "a=rtpmap:%d VC2/90000\r\n", payload_type);
532 av_strlcatf(buff, size, "a=rtpmap:%d H264/90000\r\n"
547 av_strlcatf(buff, size, "a=rtpmap:%d H261/90000\r\n", payload_type);
549 av_strlcatf(buff, size, "a=fmtp:%d %s\r\n", payload_type, pic_fmt);
561 av_strlcatf(buff, size, "a=rtpmap:%d H263-2000/90000\r\n"
572 av_strlcatf(buff, size, "a=rtpmap:%d H265/90000\r\n", payload_type);
574 av_strlcatf(buff, size, "a=fmtp:%d %s\r\n",
583 av_strlcatf(buff, size, "a=rtpmap:%d MP4V-ES/90000\r\n"
594 av_strlcatf(buff, size, "a=rtpmap:%d MP4A-LATM/%d/%d\r\n"
610 av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n"
620 av_strlcatf(buff, size, "a=rtpmap:%d L16/%d/%d\r\n",
626 av_strlcatf(buff, size, "a=rtpmap:%d L24/%d/%d\r\n",
632 av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n",
638 av_strlcatf(buff, size, "a=rtpmap:%d PCMA/%d/%d\r\n",
643 av_strlcatf(buff, size, "a=rtpmap:%d AMR/%d/%d\r\n"
649 av_strlcatf(buff, size, "a=rtpmap:%d AMR-WB/%d/%d\r\n"
664 av_strlcatf(buff, size, "a=rtpmap:%d vorbis/%d/%d\r\n"
695 av_strlcatf(buff, size, "a=rtpmap:%d theora/90000\r\n"
730 av_strlcatf(buff, size, "a=rtpmap:%d raw/90000\r\n"
737 av_strlcatf(buff, size, "; interlace");
738 av_strlcatf(buff, size, "\r\n");
743 av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n",
747 av_strlcatf(buff, size, "a=rtpmap:%d VP9/90000\r\n",
752 av_strlcatf(buff, size, "a=rtpmap:%d JPEG/90000\r\n",
757 av_strlcatf(buff, size, "a=rtpmap:%d G722/%d/%d\r\n",
763 av_strlcatf(buff, size, "a=rtpmap:%d AAL2-G726-%d/%d\r\n",
771 av_strlcatf(buff, size, "a=rtpmap:%d G726-%d/%d\r\n",
778 av_strlcatf(buff, size, "a=rtpmap:%d iLBC/%d\r\n"
784 av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n",
794 av_strlcatf(buff, size, "a=rtpmap:%d opus/48000/2\r\n",
797 av_strlcatf(buff, size, "a=fmtp:%d sprop-stereo=1\r\n",
811 int ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx,
828 av_strlcatf(buff, size, "m=%s %d RTP/AVP %d\r\n", type, port, payload_type);
829 sdp_write_address(buff, size, dest_addr, dest_type, ttl);
831 av_strlcatf(buff, size, "b=AS:%"PRId64"\r\n", p->bit_rate / 1000);
834 return sdp_write_media_attributes(buff, size, st, payload_type, fmt);
915 int ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx,