]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/eac3enc.c
avcodec/mjpegenc: Fix segfault when freeing incomplete context
[ffmpeg] / libavcodec / eac3enc.c
index 585588a48015ab46ed1d08eab67cb47074006193..356bb677c2f4c232c6f5d3bcfe868ffb0b1bedff 100644 (file)
 #include "eac3_data.h"
 
 
-#define AC3ENC_TYPE AC3ENC_TYPE_EAC3
-#include "ac3enc_opts_template.c"
-
 static const AVClass eac3enc_class = {
     .class_name = "E-AC-3 Encoder",
     .item_name  = av_default_item_name,
-    .option     = ac3_options,
+    .option     = &ff_ac3_enc_options[2], /* First two options are AC-3 only. */
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
@@ -265,6 +262,6 @@ AVCodec ff_eac3_encoder = {
     .priv_class      = &eac3enc_class,
     .supported_samplerates = ff_ac3_sample_rate_tab,
     .channel_layouts = ff_ac3_channel_layouts,
-    .defaults        = ac3_defaults,
+    .defaults        = ff_ac3_enc_defaults,
     .caps_internal   = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
 };