Lines Matching defs:vp8
39 static void prepare_packet(AVPacket *pkt, PayloadContext *vp8, int stream)
43 pkt->flags = vp8->is_keyframe ? AV_PKT_FLAG_KEY : 0;
44 pkt->size = avio_close_dyn_buf(vp8->data, &pkt->data);
46 vp8->data = NULL;
50 PayloadContext *vp8,
61 if (!vp8->data) {
65 prepare_packet(pkt, vp8, st->index);
66 *timestamp = vp8->timestamp;
79 if (vp8->data) {
81 prepare_packet(pkt, vp8, st->index);
82 *timestamp = vp8->timestamp; // reset timestamp from old frame
88 if ((res = avio_open_dyn_buf(&vp8->data)) < 0)
90 vp8->is_keyframe = *buf & 1;
91 vp8->timestamp = ts;
94 if (!vp8->data || vp8->timestamp != *timestamp && ret == AVERROR(EAGAIN)) {
114 avio_write(vp8->data, buf, au_len);
123 prepare_packet(pkt, vp8, st->index);
137 static void vp8_free_context(PayloadContext *vp8)
139 if (vp8->data) {
141 avio_close_dyn_buf(vp8->data, &tmp);
144 av_free(vp8);