summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/libtwolame.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/libtwolame.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/libtwolame.c')
-rw-r--r--ffmpeg/libavcodec/libtwolame.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg/libavcodec/libtwolame.c b/ffmpeg/libavcodec/libtwolame.c
index 8858714..dc4efe5 100644
--- a/ffmpeg/libavcodec/libtwolame.c
+++ b/ffmpeg/libavcodec/libtwolame.c
@@ -67,6 +67,8 @@ static av_cold int twolame_encode_init(AVCodecContext *avctx)
twolame_set_psymodel(s->glopts, s->psymodel);
twolame_set_energy_levels(s->glopts, s->energy);
twolame_set_error_protection(s->glopts, s->error_protection);
+ twolame_set_copyright(s->glopts, s->copyright);
+ twolame_set_original(s->glopts, s->original);
twolame_set_num_channels(s->glopts, avctx->channels);
twolame_set_in_samplerate(s->glopts, avctx->sample_rate);
@@ -175,6 +177,7 @@ static const AVClass libtwolame_class = {
AVCodec ff_libtwolame_encoder = {
.name = "libtwolame",
+ .long_name = NULL_IF_CONFIG_SMALL("libtwolame MP2 (MPEG audio layer 2)"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_MP2,
.priv_data_size = sizeof(TWOLAMEContext),
@@ -191,6 +194,5 @@ AVCodec ff_libtwolame_encoder = {
AV_CH_LAYOUT_STEREO,
0 },
.supported_samplerates = (const int[]){ 16000, 22050, 24000, 32000, 44100, 48000, 0 },
- .long_name = NULL_IF_CONFIG_SMALL("libtwolame MP2 (MPEG audio layer 2)"),
.priv_class = &libtwolame_class,
};