]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sunrastenc.c
cbs: Add an explicit type for coded bitstream unit types
[ffmpeg] / libavcodec / sunrastenc.c
index 411d184a1468d7feddc2f42b9f583270b92845d7..3a5f410135e7933f51bd66d3299756163dad7fa6 100644 (file)
@@ -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