Lines Matching defs:buf
30 AVIOContext *buf;
43 ffio_free_dyn_buf(&pl_ctx->buf);
48 const uint8_t *buf, int len, uint16_t seq,
55 if (rtp_h261_ctx->buf && rtp_h261_ctx->timestamp != *timestamp) {
56 ffio_free_dyn_buf(&rtp_h261_ctx->buf);
86 sbit = (buf[0] >> 5) & 0x07;
87 ebit = (buf[0] >> 2) & 0x07;
88 gobn = (buf[1] >> 4) & 0x0f;
89 mbap = ((buf[1] << 1) & 0x1e) | ((buf[2] >> 7) & 0x01);
90 quant = (buf[2] >> 2) & 0x1f;
93 buf += RTP_H261_PAYLOAD_HEADER_SIZE;
97 if (!rtp_h261_ctx->buf) {
100 res = avio_open_dyn_buf(&rtp_h261_ctx->buf);
114 rtp_h261_ctx->endbyte |= buf[0] & (0xff >> sbit);
116 buf++;
118 avio_w8(rtp_h261_ctx->buf, rtp_h261_ctx->endbyte);
122 res = init_get_bits(&gb, buf, len*8 - ebit);
128 avio_w8(rtp_h261_ctx->buf, rtp_h261_ctx->endbyte);
131 avio_w8(rtp_h261_ctx->buf, get_bits(&gb, 8));
142 avio_write(rtp_h261_ctx->buf, buf, len - 1);
144 rtp_h261_ctx->endbyte = buf[len - 1] & (0xff << ebit);
146 avio_write(rtp_h261_ctx->buf, buf, len);
156 avio_w8(rtp_h261_ctx->buf, rtp_h261_ctx->endbyte);
160 res = ff_rtp_finalize_packet(pkt, &rtp_h261_ctx->buf, st->index);