summaryrefslogtreecommitdiff
path: root/libavcodec/sunrastenc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-01-04 14:13:00 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-01-11 15:32:57 -0500
commit81737f42c28858dad76a40284a35f7a64faa2fc7 (patch)
tree683af0f504ff9063c032ce6304e76c702b64ec7c /libavcodec/sunrastenc.c
parent46350db737a15910f468d30cf7beda16a4cc8332 (diff)
sunrastenc: Properly load codec private options
Initialize the private class field and give the class a more appropriate name. Add a class member to the codec context.
Diffstat (limited to 'libavcodec/sunrastenc.c')
-rw-r--r--libavcodec/sunrastenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/sunrastenc.c b/libavcodec/sunrastenc.c
index 411d184a14..3a5f410135 100644
--- a/libavcodec/sunrastenc.c
+++ b/libavcodec/sunrastenc.c
@@ -27,6 +27,8 @@
#include "sunrast.h"
typedef struct SUNRASTContext {
+ AVClass *class;
+
PutByteContext p;
int depth; ///< depth of pixel
int length; ///< length (bytes) of image
@@ -226,7 +228,7 @@ static const AVOption options[] = {
{ NULL },
};
-static const AVClass utvideo_class = {
+static const AVClass sunrast_class = {
.class_name = "sunrast",
.item_name = av_default_item_name,
.option = options,
@@ -246,6 +248,7 @@ AVCodec ff_sunrast_encoder = {
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_SUNRAST,
.priv_data_size = sizeof(SUNRASTContext),
+ .priv_class = &sunrast_class,
.init = sunrast_encode_init,
.encode2 = sunrast_encode_frame,
#if FF_API_CODER_TYPE