summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-01 11:16:52 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-01 11:16:52 +0000
commit5fcb1798345f325b248b30f551b6cef38b132888 (patch)
tree14debbc584866711d6bd5e3650ed4776690b08eb /libmpcodecs
parentc9ba917877a8cd6ce51609d2feb27496d05143cd (diff)
downloadmpv-5fcb1798345f325b248b30f551b6cef38b132888.tar.bz2
mpv-5fcb1798345f325b248b30f551b6cef38b132888.tar.xz
XVID profile array should be const, so it is in rodata
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28221 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_xvid4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpcodecs/ve_xvid4.c b/libmpcodecs/ve_xvid4.c
index 6b50885647..8a2c2c542b 100644
--- a/libmpcodecs/ve_xvid4.c
+++ b/libmpcodecs/ve_xvid4.c
@@ -78,7 +78,7 @@
typedef const struct
{
- char *name; ///< profile name
+ const char *name; ///< profile name
int id; ///< mpeg-4 profile id; iso/iec 14496-2:2001 table G-1
int width; ///< profile width restriction
int height; ///< profile height restriction
@@ -100,7 +100,7 @@ typedef const struct
/* default vbv_occupancy is (64/170)*vbv_buffer_size */
-static profile_t profiles[] =
+static const profile_t profiles[] =
{
/* name p@l w h fps obj Tvmv vmv vcv ac% vbv pkt bps vbv_peak dbf flags */
/* unrestricted profile (default) */
@@ -139,7 +139,7 @@ static profile_t profiles[] =
* \param str the profile name
* \return pointer of the appropriate profiles array entry or NULL for a mistyped profile name
*/
-static profile_t *profileFromName(char *str)
+static const profile_t *profileFromName(const char *str)
{
profile_t *cur = profiles;
while (cur->name && strcasecmp(cur->name, str)) cur++;
@@ -672,7 +672,7 @@ static int dispatch_settings(xvid_mplayer_module_t *mod)
};
//profile is unrestricted as default
- profile_t *selected_profile = profileFromName("unrestricted");
+ const profile_t *selected_profile = profileFromName("unrestricted");
if(xvidenc_profile)
selected_profile = profileFromName(xvidenc_profile);
if(!selected_profile)