Lines Matching refs:size
137 static void xor_fast(const uint8_t *in1, const uint8_t *in2, uint8_t *out, int size) {
143 n = size / sizeof (uint64_t);
157 n = size / sizeof (uint32_t);
170 n = size - s;
177 static int prompeg_create_bitstring(URLContext *h, const uint8_t *buf, int size,
182 if (size < 12 || (buf[0] & 0xc0) != 0x80 || (buf[1] & 0x7f) != 0x21) {
186 if (size != s->packet_size) {
187 av_log(h, AV_LOG_ERROR, "The RTP packet size must be constant (set pkt_size)\n");
320 static int prompeg_init(URLContext *h, const uint8_t *buf, int size) {
328 if (size < 12 || size > UINT16_MAX + 12) {
329 av_log(h, AV_LOG_ERROR, "Invalid RTP packet size\n");
335 s->packet_size = size;
336 s->length_recovery = size - 12;
385 static int prompeg_write(URLContext *h, const uint8_t *buf, int size) {
392 if (s->init && ((ret = prompeg_init(h, buf, size)) < 0))
395 if ((ret = prompeg_create_bitstring(h, buf, size, &bitstring)) < 0)
444 ret = size;