/* only QCIF and CIF are specified as supported in RFC 4587 */
if (c->width == 176 && c->height == 144)
pic_fmt = "QCIF=1";
- if (c->width == 352 && c->height == 288)
+ else if (c->width == 352 && c->height == 288)
pic_fmt = "CIF=1";
- av_strlcatf(buff, size, "a=rtpmap:%d H261/90000\r\n", payload_type);
+ if (payload_type >= RTP_PT_PRIVATE)
+ av_strlcatf(buff, size, "a=rtpmap:%d H261/90000\r\n", payload_type);
if (pic_fmt)
av_strlcatf(buff, size, "a=fmtp:%d %s\r\n", payload_type, pic_fmt);
break;