summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-10-03 19:14:03 +0200
committerAnton Khirnov <anton@khirnov.net>2011-10-05 07:52:30 +0200
commita4ea00d021b2bda1b641a2f00c167cadedfe9d4c (patch)
tree9518f4e1b6de886ca7cf805d5c7f79901109f16d /libavcodec/ac3dec.c
parent0ba1e1978d4016df42ed481a832e7539ebc48220 (diff)
lavc/lavf: use unique private classes.
This is needed by the new AVOptions API.
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 79360c2253..5046a5c644 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1444,7 +1444,7 @@ static const AVOption options[] = {
};
static const AVClass ac3_decoder_class = {
- .class_name = "(E-)AC3 decoder",
+ .class_name = "AC3 decoder",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
@@ -1466,6 +1466,12 @@ AVCodec ff_ac3_decoder = {
};
#if CONFIG_EAC3_DECODER
+static const AVClass eac3_decoder_class = {
+ .class_name = "E-AC3 decoder",
+ .item_name = av_default_item_name,
+ .option = options,
+ .version = LIBAVUTIL_VERSION_INT,
+};
AVCodec ff_eac3_decoder = {
.name = "eac3",
.type = AVMEDIA_TYPE_AUDIO,
@@ -1478,6 +1484,6 @@ AVCodec ff_eac3_decoder = {
.sample_fmts = (const enum AVSampleFormat[]) {
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE
},
- .priv_class = &ac3_decoder_class,
+ .priv_class = &eac3_decoder_class,
};
#endif