Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
5c45e942
Commit
5c45e942
authored
Oct 31, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used char [size] instead of char * in mp4.c for the iso639 conversion table.
parent
f5d49c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+3
-3
No files found.
modules/demux/mp4/mp4.c
View file @
5c45e942
...
...
@@ -2715,7 +2715,7 @@ static void MP4_TrackSetELST( demux_t *p_demux, mp4_track_t *tk,
/* */
static
const
char
*
MP4_ConvertMacCode
(
uint16_t
i_code
)
{
static
const
struct
{
const
char
*
psz_iso639_1
;
uint16_t
i_code
;
}
p_cvt
[]
=
{
static
const
struct
{
const
char
psz_iso639_1
[
3
]
;
uint16_t
i_code
;
}
p_cvt
[]
=
{
{
"en"
,
0
},
{
"fr"
,
1
},
{
"de"
,
2
},
{
"it"
,
3
},
{
"nl"
,
4
},
{
"sv"
,
5
},
{
"es"
,
6
},
{
"da"
,
7
},
{
"pt"
,
8
},
{
"no"
,
9
},
{
"he"
,
10
},
{
"ja"
,
11
},
{
"ar"
,
12
},
{
"fi"
,
13
},
{
"el"
,
14
},
...
...
@@ -2742,10 +2742,10 @@ static const char *MP4_ConvertMacCode( uint16_t i_code )
{
"gl"
,
140
},
{
"af"
,
141
},
{
"br"
,
142
},
{
"iu"
,
143
},
{
"gd"
,
144
},
{
"gv"
,
145
},
{
"ga"
,
146
},
{
"to"
,
147
},
{
"el"
,
148
},
/* */
{
NULL
,
0
}
{
""
,
0
}
};
int
i
;
for
(
i
=
0
;
p_cvt
[
i
].
psz_iso639_1
!=
NULL
;
i
++
)
for
(
i
=
0
;
*
p_cvt
[
i
].
psz_iso639_1
;
i
++
)
{
if
(
p_cvt
[
i
].
i_code
==
i_code
)
return
p_cvt
[
i
].
psz_iso639_1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment