Mercurial > libavformat.hg
changeset 3966:4a3372240319 libavformat
Add (additional) const to many global tables.
author | reimar |
---|---|
date | Thu, 02 Oct 2008 15:52:04 +0000 |
parents | adbe373e6e79 |
children | 4fd67f05bad9 |
files | isom.c rtsp.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/isom.c Wed Oct 01 14:44:30 2008 +0000 +++ b/isom.c Thu Oct 02 15:52:04 2008 +0000 @@ -221,7 +221,7 @@ /* cf. QTFileFormat.pdf p253, qtff.pdf p205 */ /* http://developer.apple.com/documentation/mac/Text/Text-368.html */ /* deprecated by putting the code as 3*5bit ascii */ -static const char *mov_mdhd_language_map[] = { +static const char * const mov_mdhd_language_map[] = { /* 0-9 */ "eng", "fra", "ger", "ita", "dut", "sve", "spa", "dan", "por", "nor", "heb", "jpn", "ara", "fin", "gre", "ice", "mlt", "tur", "hr "/*scr*/, "chi"/*ace?*/,
--- a/rtsp.c Wed Oct 01 14:44:30 2008 +0000 +++ b/rtsp.c Thu Oct 02 15:52:04 2008 +0000 @@ -293,7 +293,7 @@ /* All known fmtp parmeters and the corresping RTPAttrTypeEnum */ #define ATTR_NAME_TYPE_INT 0 #define ATTR_NAME_TYPE_STR 1 -static attrname_map_t attr_names[]= +static const attrname_map_t attr_names[]= { {"SizeLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, sizelength)}, {"IndexLength", ATTR_NAME_TYPE_INT, offsetof(rtp_payload_data_t, indexlength)},