Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Anshul Maheshwari authored on 2014/06/14 20:36:37... | ... |
@@ -23,6 +23,7 @@ |
23 | 23 |
#include "get_bits.h" |
24 | 24 |
#include "bytestream.h" |
25 | 25 |
#include "libavutil/colorspace.h" |
26 |
+#include "libavutil/opt.h" |
|
26 | 27 |
|
27 | 28 |
#define DVBSUB_PAGE_SEGMENT 0x10 |
28 | 29 |
#define DVBSUB_REGION_SEGMENT 0x11 |
... | ... |
@@ -227,6 +228,7 @@ typedef struct DVBSubDisplayDefinition { |
227 | 227 |
} DVBSubDisplayDefinition; |
228 | 228 |
|
229 | 229 |
typedef struct DVBSubContext { |
230 |
+ AVClass *class; |
|
230 | 231 |
int composition_id; |
231 | 232 |
int ancillary_id; |
232 | 233 |
|
... | ... |
@@ -1551,6 +1553,15 @@ static int dvbsub_decode(AVCodecContext *avctx, |
1551 | 1551 |
return p - buf; |
1552 | 1552 |
} |
1553 | 1553 |
|
1554 |
+static const AVOption options[] = { |
|
1555 |
+ {NULL} |
|
1556 |
+}; |
|
1557 |
+static const AVClass dvbsubdec_class = { |
|
1558 |
+ .class_name = "DVB Sub Decoder", |
|
1559 |
+ .item_name = av_default_item_name, |
|
1560 |
+ .option = options, |
|
1561 |
+ .version = LIBAVUTIL_VERSION_INT, |
|
1562 |
+}; |
|
1554 | 1563 |
|
1555 | 1564 |
AVCodec ff_dvbsub_decoder = { |
1556 | 1565 |
.name = "dvbsub", |
... | ... |
@@ -1561,4 +1572,5 @@ AVCodec ff_dvbsub_decoder = { |
1561 | 1561 |
.init = dvbsub_init_decoder, |
1562 | 1562 |
.close = dvbsub_close_decoder, |
1563 | 1563 |
.decode = dvbsub_decode, |
1564 |
+ .priv_class = &dvbsubdec_class, |
|
1564 | 1565 |
}; |