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
fabc3dad
Commit
fabc3dad
authored
Sep 26, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init decoder fmt_out structure, so it can be used in transcoding loop.
parent
0f0e2498
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/codec/zvbi.c
modules/codec/zvbi.c
+9
-2
No files found.
modules/codec/zvbi.c
View file @
fabc3dad
...
@@ -194,6 +194,12 @@ static int Open( vlc_object_t *p_this )
...
@@ -194,6 +194,12 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_text
=
var_CreateGetBool
(
p_dec
,
"vbi-text"
);
p_sys
->
b_text
=
var_CreateGetBool
(
p_dec
,
"vbi-text"
);
// var_AddCallback( p_dec, "vbi-text", Text, p_sys );
// var_AddCallback( p_dec, "vbi-text", Text, p_sys );
es_format_Init
(
&
p_dec
->
fmt_out
,
SPU_ES
,
VLC_FOURCC
(
's'
,
'p'
,
'u'
,
' '
)
);
if
(
p_sys
->
b_text
)
p_dec
->
fmt_out
.
video
.
i_chroma
=
VLC_FOURCC
(
'T'
,
'E'
,
'X'
,
'T'
);
else
p_dec
->
fmt_out
.
video
.
i_chroma
=
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'A'
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -304,7 +310,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
...
@@ -304,7 +310,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
/* Normal text subs, easy markup */
/* Normal text subs, easy markup */
p_spu
->
i_flags
=
SUBPICTURE_ALIGN_BOTTOM
;
p_spu
->
i_flags
=
SUBPICTURE_ALIGN_BOTTOM
;
p_spu
->
i_start
=
p_block
->
i_pts
;
p_spu
->
i_start
=
(
mtime_t
)
p_block
->
i_pts
;
p_spu
->
i_stop
=
(
mtime_t
)
0
;
p_spu
->
i_stop
=
(
mtime_t
)
0
;
p_spu
->
b_ephemer
=
VLC_TRUE
;
p_spu
->
b_ephemer
=
VLC_TRUE
;
p_spu
->
b_absolute
=
VLC_FALSE
;
p_spu
->
b_absolute
=
VLC_FALSE
;
...
@@ -316,7 +322,8 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
...
@@ -316,7 +322,8 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
if
(
p_sys
->
b_text
)
if
(
p_sys
->
b_text
)
{
{
unsigned
int
i_total
,
i_textsize
=
7000
;
unsigned
int
i_textsize
=
7000
;
int
i_total
;
char
p_text
[
7000
];
char
p_text
[
7000
];
i_total
=
vbi_print_page_region
(
&
p_page
,
p_text
,
i_textsize
,
i_total
=
vbi_print_page_region
(
&
p_page
,
p_text
,
i_textsize
,
...
...
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