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
6d0aeeec
Commit
6d0aeeec
authored
Aug 18, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: kill warnings about sign comparison
parent
6e9418c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+4
-4
No files found.
modules/text_renderer/freetype.c
View file @
6d0aeeec
...
...
@@ -256,7 +256,7 @@ typedef struct
typedef
struct
line_desc_t
line_desc_t
;
struct
line_desc_t
{
line_desc_t
*
p_next
;
line_desc_t
*
p_next
;
int
i_width
;
int
i_base_line
;
...
...
@@ -694,7 +694,7 @@ static int RenderYUVP( filter_t *p_filter, subpicture_region_t *p_region,
for
(
;
p_line
!=
NULL
;
p_line
=
p_line
->
p_next
)
{
int
i_align_left
=
0
;
if
(
p_line
->
i_width
<
fmt
.
i_visible_width
)
if
(
p_line
->
i_width
<
(
int
)
fmt
.
i_visible_width
)
{
if
(
(
p_region
->
i_align
&
0x3
)
==
SUBPICTURE_ALIGN_RIGHT
)
i_align_left
=
(
fmt
.
i_visible_width
-
p_line
->
i_width
);
...
...
@@ -2107,7 +2107,7 @@ static int ProcessLines( filter_t *p_filter,
BBoxEnlarge
(
&
line_bbox_new
,
&
shadow_bbox
);
b_break_line
=
i_index
>
i_start
&&
line_bbox_new
.
xMax
-
line_bbox_new
.
xMin
>=
p_filter
->
fmt_out
.
video
.
i_visible_width
;
line_bbox_new
.
xMax
-
line_bbox_new
.
xMin
>=
(
int
)
p_filter
->
fmt_out
.
video
.
i_visible_width
;
if
(
b_break_line
)
{
FT_Done_Glyph
(
glyph
);
...
...
@@ -2218,7 +2218,7 @@ static int ProcessLines( filter_t *p_filter,
if
(
i_start
<
i_len
&&
psz_text
[
i_start
]
==
'\n'
)
i_start
++
;
if
(
bbox
.
yMax
-
bbox
.
yMin
>=
p_filter
->
fmt_out
.
video
.
i_visible_height
)
if
(
bbox
.
yMax
-
bbox
.
yMin
>=
(
int
)
p_filter
->
fmt_out
.
video
.
i_visible_height
)
{
msg_Err
(
p_filter
,
"Truncated too high subtitle"
);
break
;
...
...
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