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
4df0431d
Commit
4df0431d
authored
Jun 04, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ogg: fix off-by-one overflow
(cherry picked from commit b38b9c24c20313bfa3fa76fe7dffa6177edd270e)
parent
bf8e0751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/mux/ogg.c
modules/mux/ogg.c
+3
-1
No files found.
modules/mux/ogg.c
View file @
4df0431d
...
...
@@ -417,7 +417,9 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
memcpy
(
p_stream
->
p_oggds_header
->
stream_type
,
"audio"
,
5
);
memset
(
p_stream
->
p_oggds_header
->
sub_type
,
0
,
4
);
sprintf
(
p_stream
->
p_oggds_header
->
sub_type
,
"%-x"
,
i_tag
);
char
buf
[
5
];
snprintf
(
buf
,
sizeof
(
buf
),
"%"
PRIx16
,
i_tag
);
strncpy
(
p_stream
->
p_oggds_header
->
sub_type
,
buf
,
4
);
SetQWLE
(
&
p_stream
->
p_oggds_header
->
i_time_unit
,
INT64_C
(
10000000
)
);
SetDWLE
(
&
p_stream
->
p_oggds_header
->
i_default_len
,
1
);
...
...
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