ac3enc: Mark AVClasses const

Message ID 1310678568-47586-1-git-send-email-martin@martin.st
State Committed
Commit ca5d57ef8ace36ca465208e04aaae1b461cb514a
Headers show

Commit Message

Martin Storsjö July 14, 2011, 9:22 p.m.
---
 libavcodec/ac3enc_fixed.c |    4 ++--
 libavcodec/ac3enc_float.c |    4 ++--
 libavcodec/eac3enc.c      |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

Comments

Ronald Bultje July 14, 2011, 9:25 p.m. | #1
Hi,

On Thu, Jul 14, 2011 at 2:22 PM, Martin Storsjö <martin@martin.st> wrote:
> ---
>  libavcodec/ac3enc_fixed.c |    4 ++--
>  libavcodec/ac3enc_float.c |    4 ++--
>  libavcodec/eac3enc.c      |    4 ++--
>  3 files changed, 6 insertions(+), 6 deletions(-)

LGTM.

Ronald

Patch

diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c
index ea3a46c..3e01270 100644
--- a/libavcodec/ac3enc_fixed.c
+++ b/libavcodec/ac3enc_fixed.c
@@ -32,8 +32,8 @@ 
 
 #define AC3ENC_TYPE AC3ENC_TYPE_AC3_FIXED
 #include "ac3enc_opts_template.c"
-static AVClass ac3enc_class = { "Fixed-Point AC-3 Encoder", av_default_item_name,
-                                ac3fixed_options, LIBAVUTIL_VERSION_INT };
+static const AVClass ac3enc_class = { "Fixed-Point AC-3 Encoder", av_default_item_name,
+                                      ac3fixed_options, LIBAVUTIL_VERSION_INT };
 
 #include "ac3enc_template.c"
 
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c
index 718cc1f..e322afa 100644
--- a/libavcodec/ac3enc_float.c
+++ b/libavcodec/ac3enc_float.c
@@ -35,8 +35,8 @@ 
 #if CONFIG_AC3_ENCODER
 #define AC3ENC_TYPE AC3ENC_TYPE_AC3
 #include "ac3enc_opts_template.c"
-static AVClass ac3enc_class = { "AC-3 Encoder", av_default_item_name,
-                                ac3_options, LIBAVUTIL_VERSION_INT };
+static const AVClass ac3enc_class = { "AC-3 Encoder", av_default_item_name,
+                                      ac3_options, LIBAVUTIL_VERSION_INT };
 #endif
 
 #include "ac3enc_template.c"
diff --git a/libavcodec/eac3enc.c b/libavcodec/eac3enc.c
index f39b9f1..0433db4 100644
--- a/libavcodec/eac3enc.c
+++ b/libavcodec/eac3enc.c
@@ -31,8 +31,8 @@ 
 
 #define AC3ENC_TYPE AC3ENC_TYPE_EAC3
 #include "ac3enc_opts_template.c"
-static AVClass eac3enc_class = { "E-AC-3 Encoder", av_default_item_name,
-                                 eac3_options, LIBAVUTIL_VERSION_INT };
+static const AVClass eac3enc_class = { "E-AC-3 Encoder", av_default_item_name,
+                                       eac3_options, LIBAVUTIL_VERSION_INT };
 
 
 void ff_eac3_set_cpl_states(AC3EncodeContext *s)