diff pcm-mpeg.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 27eef2ead6ab
children 94cb694c2af7
line wrap: on
line diff
--- a/pcm-mpeg.c	Sun Sep 06 08:56:10 2009 +0000
+++ b/pcm-mpeg.c	Sun Sep 06 09:15:07 2009 +0000
@@ -310,7 +310,7 @@
     NULL,
     NULL,
     pcm_bluray_decode_frame,
-    .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16, SAMPLE_FMT_S32,
+    .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16, SAMPLE_FMT_S32,
                                          SAMPLE_FMT_NONE},
     .long_name = NULL_IF_CONFIG_SMALL("PCM signed 16|20|24-bit big-endian for Blu-ray media"),
 };