Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
8c293bce
Commit
8c293bce
authored
Sep 20, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust height of subpicture region.
parent
56c32065
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/codec/zvbi.c
modules/codec/zvbi.c
+5
-3
No files found.
modules/codec/zvbi.c
View file @
8c293bce
...
...
@@ -287,7 +287,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
fmt
.
i_sar_num
=
fmt
.
i_sar_den
=
1
;
fmt
.
i_width
=
fmt
.
i_visible_width
=
p_page
.
columns
*
12
;
fmt
.
i_height
=
fmt
.
i_visible_height
=
p_page
.
rows
*
10
;
fmt
.
i_bits_per_pixel
=
p_sys
->
b_text
?
0
:
32
;
fmt
.
i_bits_per_pixel
=
p_sys
->
b_text
?
0
:
32
;
fmt
.
i_x_offset
=
fmt
.
i_y_offset
=
0
;
p_spu
->
p_region
=
p_spu
->
pf_create_region
(
VLC_OBJECT
(
p_dec
),
&
fmt
);
...
...
@@ -309,6 +309,8 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
p_spu
->
b_ephemer
=
VLC_TRUE
;
p_spu
->
b_absolute
=
VLC_FALSE
;
p_spu
->
b_pausable
=
VLC_TRUE
;
p_spu
->
i_width
=
fmt
.
i_width
;
p_spu
->
i_height
=
fmt
.
i_height
;
p_spu
->
i_original_picture_width
=
p_page
.
columns
*
12
;
p_spu
->
i_original_picture_height
=
p_page
.
rows
*
10
;
...
...
@@ -318,13 +320,13 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
char
p_text
[
7000
];
i_total
=
vbi_print_page_region
(
&
p_page
,
p_text
,
i_textsize
,
"ASCII"
,
0
,
0
,
0
,
0
,
p_page
.
columns
,
p_page
.
rows
);
"UTF-8"
,
0
,
0
,
0
,
0
,
p_page
.
columns
,
p_page
.
rows
);
p_text
[
i_total
]
=
'\0'
;
/* Strip off the pagenumber */
if
(
i_total
<=
8
)
goto
error
;
p_spu
->
p_region
->
psz_text
=
strdup
(
&
p_text
[
8
]
);
p_spu
->
p_region
->
fmt
.
i_height
=
p_spu
->
p_region
->
fmt
.
i_visible_height
=
p_page
.
rows
+
1
;
msg_Dbg
(
p_dec
,
"page %x-%x(%d)
\n
%s"
,
p_page
.
pgno
,
p_page
.
subno
,
i_total
,
p_text
);
}
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