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
1321d843
Commit
1321d843
authored
Oct 15, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/dvbsub.c: don't wait for an acquisition page to start decoding the subtitles.
parent
f9043113
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+10
-7
No files found.
modules/codec/dvbsub.c
View file @
1321d843
...
...
@@ -503,7 +503,8 @@ static void decode_clut( decoder_t *p_dec, bs_t *s )
p_sys
->
p_cluts
=
p_clut
;
}
/* TODO: initialize to default clut */
/* Initialize to default clut */
*
p_clut
=
p_sys
->
default_clut
;
/* We don't have this version of the CLUT: Parse it */
p_clut
->
i_version
=
i_version
;
...
...
@@ -599,9 +600,10 @@ static void decode_page_composition( decoder_t *p_dec, bs_t *s )
}
else
if
(
!
p_sys
->
p_page
&&
i_state
!=
DVBSUB_PCS_STATE_ACQUISITION
)
{
#ifdef DEBUG_DVBSUB
/* Not a full PCS, we need to wait for one */
msg_Dbg
(
p_dec
,
"didn't receive an acquisition page yet"
);
#if 0 /* Try to start decoding even without an acquisition page */
bs_skip( s, 8 * (i_segment_length - 2) );
return;
#endif
...
...
@@ -728,10 +730,11 @@ static void decode_region_composition( decoder_t *p_dec, bs_t *s )
}
p_region
->
p_pixbuf
=
malloc
(
i_height
*
i_width
);
p_region
->
i_depth
=
0
;
b_fill
=
VLC_TRUE
;
}
if
(
p_region
->
i_depth
!=
i_depth
||
p_region
->
i_level_comp
!=
i_level_comp
||
p_region
->
i_clut
!=
i_clut
)
if
(
p_region
->
i_depth
&&
(
p_region
->
i_depth
!=
i_depth
||
p_region
->
i_level_comp
!=
i_level_comp
||
p_region
->
i_clut
!=
i_clut
)
)
{
msg_Dbg
(
p_dec
,
"region parameters changed (not allowed)"
);
}
...
...
@@ -1215,7 +1218,7 @@ static subpicture_t *render( decoder_t *p_dec )
if
(
!
p_region
)
{
msg_
Err
(
p_dec
,
"no region founddddd!!!"
);
msg_
Dbg
(
p_dec
,
"region %i not found"
,
p_regiondef
->
i_id
);
continue
;
}
...
...
@@ -1226,8 +1229,8 @@ static subpicture_t *render( decoder_t *p_dec )
}
if
(
!
p_clut
)
{
msg_
Warn
(
p_dec
,
"clut %i not found"
,
p_region
->
i_clut
);
p_clut
=
&
p_sys
->
default_clut
;
msg_
Dbg
(
p_dec
,
"clut %i not found"
,
p_region
->
i_clut
);
continue
;
}
/* Create new SPU region */
...
...
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