diff libopencore-amr.c @ 10145:7955db355703 libavcodec

Make sample_fmts and channel_layouts compound literals const to reduce size of .data section.
author reimar
date Sun, 06 Sep 2009 09:15:07 +0000
parents 038c7940a21e
children 8a4984c5cacc
line wrap: on
line diff
--- a/libopencore-amr.c	Sun Sep 06 08:56:10 2009 +0000
+++ b/libopencore-amr.c	Sun Sep 06 09:15:07 2009 +0000
@@ -222,7 +222,7 @@
     amr_nb_encode_frame,
     amr_nb_encode_close,
     NULL,
-    .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
+    .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
     .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"),
 };