Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e10ba748
Commit
e10ba748
authored
Feb 13, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for language in asf (close #3292).
parent
d72f50ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+14
-0
No files found.
modules/demux/asf/asf.c
View file @
e10ba748
...
@@ -736,6 +736,10 @@ static int DemuxInit( demux_t *p_demux )
...
@@ -736,6 +736,10 @@ static int DemuxInit( demux_t *p_demux )
asf_object_t
*
p_hdr_ext
=
ASF_FindObject
(
p_sys
->
p_root
->
p_hdr
,
asf_object_t
*
p_hdr_ext
=
ASF_FindObject
(
p_sys
->
p_root
->
p_hdr
,
&
asf_object_header_extension_guid
,
0
);
&
asf_object_header_extension_guid
,
0
);
asf_object_language_list_t
*
p_languages
=
NULL
;
if
(
p_hdr_ext
)
p_languages
=
ASF_FindObject
(
p_hdr_ext
,
&
asf_object_language_list
,
0
);
for
(
unsigned
i_stream
=
0
;
i_stream
<
p_sys
->
i_track
;
i_stream
++
)
for
(
unsigned
i_stream
=
0
;
i_stream
<
p_sys
->
i_track
;
i_stream
++
)
{
{
asf_track_t
*
tk
;
asf_track_t
*
tk
;
...
@@ -946,6 +950,16 @@ static int DemuxInit( demux_t *p_demux )
...
@@ -946,6 +950,16 @@ static int DemuxInit( demux_t *p_demux )
tk
->
i_cat
=
fmt
.
i_cat
;
tk
->
i_cat
=
fmt
.
i_cat
;
if
(
fmt
.
i_cat
!=
UNKNOWN_ES
)
if
(
fmt
.
i_cat
!=
UNKNOWN_ES
)
{
{
if
(
p_esp
&&
p_languages
&&
p_esp
->
i_language_index
>=
0
&&
p_esp
->
i_language_index
<
p_languages
->
i_language
)
{
fmt
.
psz_language
=
strdup
(
p_languages
->
ppsz_language
[
p_esp
->
i_language_index
]
);
char
*
p
;
if
(
fmt
.
psz_language
&&
(
p
=
strchr
(
fmt
.
psz_language
,
'-'
))
)
*
p
=
'\0'
;
}
tk
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
fmt
);
tk
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
fmt
);
}
}
else
else
...
...
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