Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
803def84
Commit
803def84
authored
Dec 07, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: asf: fix signedness on stream prioritization
parent
092aa902
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
modules/demux/asf/libasf.c
modules/demux/asf/libasf.c
+4
-4
modules/demux/asf/libasf.h
modules/demux/asf/libasf.h
+3
-3
No files found.
modules/demux/asf/libasf.c
View file @
803def84
...
...
@@ -1052,7 +1052,7 @@ static int ASF_ReadObject_stream_prioritization( stream_t *s,
asf_object_stream_prioritization_t
*
p_sp
=
&
p_obj
->
stream_prioritization
;
const
uint8_t
*
p_peek
,
*
p_data
;
int
i_peek
;
in
t
i
;
uint16_
t
i
;
if
(
(
i_peek
=
stream_Peek
(
s
,
&
p_peek
,
p_sp
->
i_object_size
)
)
<
26
)
return
VLC_EGENERIC
;
...
...
@@ -1061,9 +1061,9 @@ static int ASF_ReadObject_stream_prioritization( stream_t *s,
p_sp
->
i_priority_count
=
ASF_READ2
();
p_sp
->
pi_priority_flag
=
calloc
(
p_sp
->
i_priority_count
,
sizeof
(
in
t
)
);
p_sp
->
pi_priority_flag
=
calloc
(
p_sp
->
i_priority_count
,
sizeof
(
uint16_
t
)
);
p_sp
->
pi_priority_stream_number
=
calloc
(
p_sp
->
i_priority_count
,
sizeof
(
in
t
)
);
calloc
(
p_sp
->
i_priority_count
,
sizeof
(
uint16_
t
)
);
if
(
!
p_sp
->
pi_priority_flag
||
!
p_sp
->
pi_priority_stream_number
)
{
...
...
@@ -1084,7 +1084,7 @@ static int ASF_ReadObject_stream_prioritization( stream_t *s,
#ifdef ASF_DEBUG
msg_Dbg
(
s
,
"read
\"
stream prioritization object
\"
"
);
for
(
i
=
0
;
i
<
p_sp
->
i_priority_count
;
i
++
)
msg_Dbg
(
s
,
" - Stream:%
d
flags=0x%x"
,
msg_Dbg
(
s
,
" - Stream:%
u
flags=0x%x"
,
p_sp
->
pi_priority_stream_number
[
i
],
p_sp
->
pi_priority_flag
[
i
]
);
#endif
...
...
modules/demux/asf/libasf.h
View file @
803def84
...
...
@@ -311,9 +311,9 @@ typedef struct
{
ASF_OBJECT_COMMON
in
t
i_priority_count
;
in
t
*
pi_priority_flag
;
in
t
*
pi_priority_stream_number
;
uint16_
t
i_priority_count
;
uint16_
t
*
pi_priority_flag
;
uint16_
t
*
pi_priority_stream_number
;
}
asf_object_stream_prioritization_t
;
typedef
struct
...
...
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