Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
006fd55e
Commit
006fd55e
authored
Aug 29, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLM: fix aliasing
(cherry picked from commit
f3c14e26
)
parent
8e70853a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/input/vlm.c
src/input/vlm.c
+7
-5
No files found.
src/input/vlm.c
View file @
006fd55e
...
...
@@ -546,17 +546,19 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
{
input_item_t
item
;
es_format_t
es
,
*
p_es
=
&
es
;
char
fourcc
[
5
]
;
union
{
char
text
[
5
];
uint32_t
value
;
}
fourcc
;
sprintf
(
fourcc
,
"%4.4s"
,
p_cfg
->
vod
.
psz_mux
);
fourcc
[
0
]
=
tolower
(
fourcc
[
0
]);
fourcc
[
1
]
=
tolower
(
fourcc
[
1
]);
fourcc
[
2
]
=
tolower
(
fourcc
[
2
]);
fourcc
[
3
]
=
tolower
(
fourcc
[
3
]);
sprintf
(
fourcc
.
text
,
"%4.4s"
,
p_cfg
->
vod
.
psz_mux
);
fourcc
.
text
[
0
]
=
tolower
(
fourcc
.
text
[
0
]);
fourcc
.
text
[
1
]
=
tolower
(
fourcc
.
text
[
1
]);
fourcc
.
text
[
2
]
=
tolower
(
fourcc
.
text
[
2
]);
fourcc
.
text
[
3
]
=
tolower
(
fourcc
.
text
[
3
]);
/* XXX: Don't do it that way, but properly use a new input item ref. */
item
=
*
p_media
->
vod
.
p_item
;
item
.
i_es
=
1
;
item
.
es
=
&
p_es
;
es_format_Init
(
&
es
,
VIDEO_ES
,
*
((
int
*
)
fourcc
)
);
es_format_Init
(
&
es
,
VIDEO_ES
,
fourcc
.
value
);
p_media
->
vod
.
p_media
=
p_vlm
->
p_vod
->
pf_media_new
(
p_vlm
->
p_vod
,
p_cfg
->
psz_name
,
&
item
);
...
...
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