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
d87dbcb0
Commit
d87dbcb0
authored
Apr 09, 2014
by
John Stebbins
Committed by
Francois Cartegnie
Apr 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: unbreak vobsub playback and read vobsub palette
Signed-off-by:
Francois Cartegnie
<
fcvlcdev@free.fr
>
parent
362eb374
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+12
-1
No files found.
modules/demux/mp4/mp4.c
View file @
d87dbcb0
...
...
@@ -758,7 +758,8 @@ static int Demux( demux_t *p_demux )
}
else
if
(
tk
->
fmt
.
i_cat
==
SPU_ES
)
{
if
(
tk
->
fmt
.
i_codec
!=
VLC_CODEC_TX3G
)
if
(
tk
->
fmt
.
i_codec
!=
VLC_CODEC_TX3G
&&
tk
->
fmt
.
i_codec
!=
VLC_CODEC_SPU
)
p_block
->
i_buffer
=
0
;
}
...
...
@@ -2315,6 +2316,16 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
memcpy
(
p_track
->
fmt
.
p_extra
,
p_decconfig
->
p_decoder_specific_info
,
p_track
->
fmt
.
i_extra
);
}
if
(
p_track
->
fmt
.
i_codec
==
VLC_CODEC_SPU
&&
p_track
->
fmt
.
i_extra
>=
16
*
4
)
{
for
(
int
i
=
0
;
i
<
16
;
i
++
)
{
p_track
->
fmt
.
subs
.
spu
.
palette
[
1
+
i
]
=
GetDWBE
((
char
*
)
p_track
->
fmt
.
p_extra
+
i
*
4
);
}
p_track
->
fmt
.
subs
.
spu
.
palette
[
0
]
=
0xBeef
;
}
}
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