From 944b5d2acd1fd5a21dcd66f37bb8907784318cc5 Mon Sep 17 00:00:00 2001 From: iive Date: Fri, 28 Sep 2007 21:06:45 +0000 Subject: [PATCH] Define profiles_t as const to fix a warning. Prevent profiles[] from been exported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24649 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ve_xvid4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/ve_xvid4.c b/libmpcodecs/ve_xvid4.c index 5e52c93489..e5e7078b21 100644 --- a/libmpcodecs/ve_xvid4.c +++ b/libmpcodecs/ve_xvid4.c @@ -81,7 +81,7 @@ #define PROFILE_S (PROFILE_4MV) #define PROFILE_AS (PROFILE_4MV|PROFILE_ADAPTQUANT|PROFILE_BVOP|PROFILE_MPEGQUANT|PROFILE_INTERLACE|PROFILE_QPEL|PROFILE_GMC) -typedef struct +typedef const struct { char *name; ///< profile name int id; ///< mpeg-4 profile id; iso/iec 14496-2:2001 table G-1 @@ -105,7 +105,7 @@ typedef struct /* default vbv_occupancy is (64/170)*vbv_buffer_size */ -const profile_t profiles[] = +static profile_t profiles[] = { /* name p@l w h fps obj Tvmv vmv vcv ac% vbv pkt bps vbv_peak dbf flags */ /* unrestricted profile (default) */