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
63e333c2
Commit
63e333c2
authored
May 14, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avformat demuxer: kill 2 warnings about signedness
parent
c405205e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+2
-2
No files found.
modules/demux/avformat/demux.c
View file @
63e333c2
...
@@ -638,7 +638,7 @@ static block_t *BuildSsaFrame( const AVPacket *p_pkt, unsigned i_order )
...
@@ -638,7 +638,7 @@ static block_t *BuildSsaFrame( const AVPacket *p_pkt, unsigned i_order )
return
NULL
;
return
NULL
;
char
buffer
[
256
];
char
buffer
[
256
];
const
size_t
i_buffer_size
=
__MIN
(
sizeof
(
buffer
)
-
1
,
p_pkt
->
size
);
const
size_t
i_buffer_size
=
__MIN
(
(
int
)
sizeof
(
buffer
)
-
1
,
p_pkt
->
size
);
memcpy
(
buffer
,
p_pkt
->
data
,
i_buffer_size
);
memcpy
(
buffer
,
p_pkt
->
data
,
i_buffer_size
);
buffer
[
i_buffer_size
]
=
'\0'
;
buffer
[
i_buffer_size
]
=
'\0'
;
...
@@ -650,7 +650,7 @@ static block_t *BuildSsaFrame( const AVPacket *p_pkt, unsigned i_order )
...
@@ -650,7 +650,7 @@ static block_t *BuildSsaFrame( const AVPacket *p_pkt, unsigned i_order )
if
(
sscanf
(
buffer
,
"Dialogue: %d,%d:%d:%d.%d,%d:%d:%d.%d,%n"
,
&
i_layer
,
if
(
sscanf
(
buffer
,
"Dialogue: %d,%d:%d:%d.%d,%d:%d:%d.%d,%n"
,
&
i_layer
,
&
h0
,
&
m0
,
&
s0
,
&
c0
,
&
h1
,
&
m1
,
&
s1
,
&
c1
,
&
i_position
)
<
9
)
&
h0
,
&
m0
,
&
s0
,
&
c0
,
&
h1
,
&
m1
,
&
s1
,
&
c1
,
&
i_position
)
<
9
)
return
NULL
;
return
NULL
;
if
(
i_position
<=
0
||
i_position
>=
i_buffer_size
)
if
(
i_position
<=
0
||
(
unsigned
)
i_position
>=
i_buffer_size
)
return
NULL
;
return
NULL
;
char
*
p
;
char
*
p
;
...
...
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