|
|
|
@ -45,7 +45,9 @@ typedef struct TheoraContext{ |
|
|
|
|
/*!
|
|
|
|
|
Concatenates an ogg_packet into the extradata. |
|
|
|
|
*/ |
|
|
|
|
static int concatenate_packet(unsigned int* offset, AVCodecContext* avc_context, const ogg_packet* packet) |
|
|
|
|
static int concatenate_packet(unsigned int* offset, |
|
|
|
|
AVCodecContext* avc_context, |
|
|
|
|
const ogg_packet* packet) |
|
|
|
|
{ |
|
|
|
|
const char* message = NULL; |
|
|
|
|
uint8_t* newdata = NULL; |
|
|
|
@ -175,11 +177,8 @@ static av_cold int encode_init(AVCodecContext* avc_context) |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static int encode_frame( |
|
|
|
|
AVCodecContext* avc_context, |
|
|
|
|
uint8_t *outbuf, |
|
|
|
|
int buf_size, |
|
|
|
|
void *data) |
|
|
|
|
static int encode_frame(AVCodecContext* avc_context, uint8_t *outbuf, |
|
|
|
|
int buf_size, void *data) |
|
|
|
|
{ |
|
|
|
|
yuv_buffer t_yuv_buffer; |
|
|
|
|
TheoraContext *h = avc_context->priv_data; |
|
|
|
@ -284,8 +283,7 @@ static av_cold int encode_close(AVCodecContext* avc_context) |
|
|
|
|
static const enum PixelFormat supported_pixel_formats[] = { PIX_FMT_YUV420P, PIX_FMT_NONE }; |
|
|
|
|
|
|
|
|
|
/*! AVCodec struct exposed to libavcodec */ |
|
|
|
|
AVCodec libtheora_encoder = |
|
|
|
|
{ |
|
|
|
|
AVCodec libtheora_encoder = { |
|
|
|
|
.name = "libtheora", |
|
|
|
|
.type = CODEC_TYPE_VIDEO, |
|
|
|
|
.id = CODEC_ID_THEORA, |
|
|
|
|