Lines Matching defs:size

83     int           in_chunk_size;              ///< size of the chunks incoming RTMP packets are divided into
84 int out_chunk_size; ///< size of the chunks outgoing RTMP packets are divided into
93 int flv_size; ///< current buffer size
112 int swfsize; ///< size of the decompressed SWF file
114 char* swfverify; ///< URL to player swf file, compute hash/size automatically
124 int tracked_methods_size; ///< size of the tracked methods buffer
203 bytestream2_init(&gbc, pkt->data + offset, pkt->size - offset);
240 bytestream2_init(&gbc, pkt->data, pkt->size);
404 pkt.size = p - pkt.data;
463 bytestream2_init(&gbc, cp, pkt.size);
496 pkt.size = p - pkt.data;
511 pkt.size = p - pkt.data;
532 // Chunk size
573 pkt.size = p - pkt.data;
588 pkt.size = p - pkt.data;
877 if (ppkt->size < 6) {
879 ppkt->size);
916 * Generate window acknowledgement size message and send it to the server.
1075 int size;
1096 size = sizeof(tmp_buf) - zs.avail_out;
1097 if (!(ptr = av_realloc(*out_data, *out_size + size))) {
1103 memcpy(*out_data + *out_size, tmp_buf, size);
1104 *out_size += size;
1381 int size)
1390 av_log(rt, AV_LOG_ERROR, "Erroneous Message size %d"
1401 uint32_t second_int, char *arraydata, int size)
1499 if (pkt->size < 4) {
1501 "Too short chunk size change packet (%d)\n",
1502 pkt->size);
1507 /* Send the same chunk size change packet back to the server,
1508 * setting the outgoing chunk size to the same as the incoming one. */
1517 av_log(s, AV_LOG_ERROR, "Incorrect chunk size %d\n",
1521 av_log(s, AV_LOG_DEBUG, "New incoming chunk size = %d\n",
1532 if (pkt->size < 2) {
1534 pkt->size);
1558 if (pkt->size < 4) {
1561 pkt->size);
1585 if (pkt->size < 4) {
1587 "Too short window acknowledgement size packet (%d)\n",
1588 pkt->size);
1594 av_log(s, AV_LOG_ERROR, "Incorrect window acknowledgement size %d\n",
1598 av_log(s, AV_LOG_DEBUG, "Window acknowledgement size = %d\n", rt->receive_report_size);
1600 // size, to make sure the peer can keep on sending without waiting
1797 const uint8_t *data_end = pkt->data + pkt->size;
1847 bytestream2_init_writer(&pbc, spkt.data, spkt.size);
1893 spkt.size = pp - spkt.data;
1915 bytestream2_init(&gbc, p, pkt->size);
2003 spkt.size = pp - spkt.data;
2027 bytestream2_init(&gbc, pkt->data, pkt->size);
2124 const uint8_t *data_end = pkt->data + pkt->size;
2164 if (ff_amf_match_string(pkt->data, pkt->size, "_error")) {
2167 } else if (ff_amf_match_string(pkt->data, pkt->size, "_result")) {
2170 } else if (ff_amf_match_string(pkt->data, pkt->size, "onStatus")) {
2173 } else if (ff_amf_match_string(pkt->data, pkt->size, "onBWDone")) {
2176 } else if (ff_amf_match_string(pkt->data, pkt->size, "releaseStream") ||
2177 ff_amf_match_string(pkt->data, pkt->size, "FCPublish") ||
2178 ff_amf_match_string(pkt->data, pkt->size, "publish") ||
2179 ff_amf_match_string(pkt->data, pkt->size, "play") ||
2180 ff_amf_match_string(pkt->data, pkt->size, "_checkbw") ||
2181 ff_amf_match_string(pkt->data, pkt->size, "createStream")) {
2189 static int update_offset(RTMPContext *rt, int size)
2197 rt->flv_size += size;
2201 rt->flv_size = size;
2213 const int size = pkt->size - skip;
2222 old_flv_size = update_offset(rt, size + 15);
2231 bytestream2_put_be24(&pbc, size);
2235 bytestream2_put_buffer(&pbc, data, size);
2236 bytestream2_put_be32(&pbc, size + RTMP_HEADER);
2249 bytestream2_init(&gbc, pkt->data, pkt->size);
2354 uint32_t size;
2357 old_flv_size = update_offset(rt, pkt->size);
2370 while (next - pkt->data < pkt->size - RTMP_HEADER) {
2372 size = bytestream_get_be24(&next);
2379 if (size + 3 + 4 > pkt->data + pkt->size - next)
2382 bytestream_put_be24(&p, size);
2385 memcpy(p, next, size + 3 + 4);
2386 p += size + 3;
2387 bytestream_put_be32(&p, size + RTMP_HEADER);
2388 next += size + 3 + 4;
2474 if (!rpkt.size || !rt->is_input) {
2502 if (rt->out_pkt.size)
2535 // size of our fake metadata packet.
2550 // Increase the size by the injected packet
2557 bytestream_put_be24(&p, 40); // size of data part (sum of all parts below)
2567 // mixed array (hash) with size and string/type/data tuples
2580 bytestream_put_be32(&p, 40 + RTMP_HEADER); // size of data part (sum of all parts above)
2895 static int rtmp_read(URLContext *s, uint8_t *buf, int size)
2898 int orig_size = size;
2901 while (size > 0) {
2904 if (data_left >= size) {
2905 memcpy(buf, rt->flv_data + rt->flv_off, size);
2906 rt->flv_off += size;
2912 size -= data_left;
2956 static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
2959 int size_temp = size;
3040 if ((ret = av_reallocp(&rt->out_pkt.data, rt->out_pkt.size + 16)) < 0) {
3044 memmove(rt->out_pkt.data + 16, rt->out_pkt.data, rt->out_pkt.size);
3045 rt->out_pkt.size += 16;
3059 } while (buf_temp - buf < size);
3062 return size;
3076 return size;
3094 return size;
3117 {"rtmp_swfverify", "URL to player swf file, compute hash/size automatically.", OFFSET(swfverify), AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, DEC},