* @file
* @brief RTP support for the VP8 payload
* @author Josh Allmann <joshua.allmann@gmail.com>
- * ( http://www.webmproject.org/code/specs/rtp/ )
+ * @see http://www.webmproject.org/code/specs/rtp/
*/
#include "libavcodec/bytestream.h"
av_init_packet(pkt);
pkt->stream_index = stream;
pkt->flags = vp8->is_keyframe ? AV_PKT_FLAG_KEY : 0;
- pkt->size = url_close_dyn_buf(vp8->data, &pkt->data);
+ pkt->size = avio_close_dyn_buf(vp8->data, &pkt->data);
pkt->destruct = av_destruct_packet;
vp8->data = NULL;
}
// that for the next av_get_packet call
ret = end_packet ? 1 : 0;
}
- if ((res = url_open_dyn_buf(&vp8->data)) < 0)
+ if ((res = avio_open_dyn_buf(&vp8->data)) < 0)
return res;
vp8->is_keyframe = *buf & 1;
vp8->timestamp = ts;
{
if (vp8->data) {
uint8_t *tmp;
- url_close_dyn_buf(vp8->data, &tmp);
+ avio_close_dyn_buf(vp8->data, &tmp);
av_free(tmp);
}
av_free(vp8);
.enc_name = "VP8",
.codec_type = AVMEDIA_TYPE_VIDEO,
.codec_id = CODEC_ID_VP8,
- .open = vp8_new_context,
- .close = vp8_free_context,
+ .alloc = vp8_new_context,
+ .free = vp8_free_context,
.parse_packet = vp8_handle_packet,
};