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
c729bffd
Commit
c729bffd
authored
Apr 26, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/mkv.cpp: itoa -> sprintf.
parent
057de5d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+7
-7
No files found.
modules/demux/mkv.cpp
View file @
c729bffd
...
@@ -449,7 +449,7 @@ protected:
...
@@ -449,7 +449,7 @@ protected:
{
{
std
::
string
result
;
std
::
string
result
;
char
s_value
[
6
],
s_reg_value
[
6
];
char
s_value
[
6
],
s_reg_value
[
6
];
itoa
(
value
,
s_value
,
10
);
sprintf
(
s_value
,
"%.5d"
,
value
);
if
(
b_value
)
if
(
b_value
)
{
{
...
@@ -459,7 +459,7 @@ protected:
...
@@ -459,7 +459,7 @@ protected:
}
}
else
if
(
value
<
0x80
)
else
if
(
value
<
0x80
)
{
{
itoa
(
GetPRM
(
value
)
,
s_reg_value
,
10
);
sprintf
(
s_reg_value
,
"%.5d"
,
GetPRM
(
value
)
);
result
=
"GPreg["
;
result
=
"GPreg["
;
result
+=
s_value
;
result
+=
s_value
;
result
+=
"] ("
;
result
+=
"] ("
;
...
@@ -468,7 +468,7 @@ protected:
...
@@ -468,7 +468,7 @@ protected:
}
}
else
else
{
{
itoa
(
GetPRM
(
value
)
,
s_reg_value
,
10
);
sprintf
(
s_reg_value
,
"%.5d"
,
GetPRM
(
value
)
);
result
=
"SPreg["
;
result
=
"SPreg["
;
result
+=
s_value
;
result
+=
s_value
;
result
+=
"] ("
;
result
+=
"] ("
;
...
@@ -821,11 +821,11 @@ class virtual_segment_c
...
@@ -821,11 +821,11 @@ class virtual_segment_c
{
{
public:
public:
virtual_segment_c
(
matroska_segment_c
*
p_segment
)
virtual_segment_c
(
matroska_segment_c
*
p_segment
)
:
i_current_segment
(
0
)
:
p_editions
(
NULL
)
,
p_editions
(
NULL
)
,
i_sys_title
(
0
)
,
i_current_segment
(
0
)
,
i_current_edition
(
-
1
)
,
i_current_edition
(
-
1
)
,
psz_current_chapter
(
NULL
)
,
psz_current_chapter
(
NULL
)
,
i_sys_title
(
0
)
{
{
linked_segments
.
push_back
(
p_segment
);
linked_segments
.
push_back
(
p_segment
);
...
@@ -4939,7 +4939,7 @@ bool matroska_script_interpretor_c::Interpret( const binary * p_command, size_t
...
@@ -4939,7 +4939,7 @@ bool matroska_script_interpretor_c::Interpret( const binary * p_command, size_t
chapter_item_c
*
p_chapter
=
sys
.
FindChapter
(
i_chapter_uid
,
p_segment
);
chapter_item_c
*
p_chapter
=
sys
.
FindChapter
(
i_chapter_uid
,
p_segment
);
if
(
p_chapter
==
NULL
)
if
(
p_chapter
==
NULL
)
msg_Dbg
(
&
sys
.
demuxer
,
"Chapter
%d
not found"
,
i_chapter_uid
);
msg_Dbg
(
&
sys
.
demuxer
,
"Chapter
"
I64Fd
"
not found"
,
i_chapter_uid
);
else
else
{
{
p_segment
->
Seek
(
sys
.
demuxer
,
p_chapter
->
i_user_start_time
,
-
1
,
p_chapter
);
p_segment
->
Seek
(
sys
.
demuxer
,
p_chapter
->
i_user_start_time
,
-
1
,
p_chapter
);
...
...
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