Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8c36b8a0
Commit
8c36b8a0
authored
Nov 23, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: asf: don't store exclusion guid types as is
parent
626174f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
modules/demux/asf/libasf.c
modules/demux/asf/libasf.c
+11
-10
modules/demux/asf/libasf.h
modules/demux/asf/libasf.h
+9
-1
No files found.
modules/demux/asf/libasf.c
View file @
8c36b8a0
...
...
@@ -976,16 +976,14 @@ static int ASF_ReadObject_advanced_mutual_exclusion( stream_t *s,
p_data
=
&
p_peek
[
24
];
ASF_GetGUID
(
&
p_ae
->
type
,
&
p_data
[
0
]
);
if
(
!
ASF_HAVE
(
16
+
2
*
sizeof
(
uint16_t
)
)
)
/* at least one entry */
return
VLC_EGENERIC
;
if
(
guidcmp
(
(
const
guid_t
*
)
p_data
,
&
asf_guid_mutex_language
)
)
p_ae
->
exclusion_type
=
LANGUAGE
;
else
if
(
guidcmp
(
(
const
guid_t
*
)
p_data
,
&
asf_guid_mutex_bitrate
)
)
p_ae
->
exclusion_type
=
BITRATE
;
ASF_SKIP
(
16
);
#ifdef ASF_DEBUG
if
(
guidcmp
(
&
p_ae
->
type
,
&
asf_guid_mutex_language
)
)
msg_Dbg
(
s
,
"Language exclusion"
);
else
if
(
guidcmp
(
&
p_ae
->
type
,
&
asf_guid_mutex_bitrate
)
)
msg_Dbg
(
s
,
"Bitrate exclusion"
);
else
msg_Warn
(
s
,
"Unknown exclusion type"
);
#endif
p_ae
->
i_stream_number_count
=
ASF_READ2
();
p_ae
->
pi_stream_number
=
calloc
(
p_ae
->
i_stream_number_count
,
sizeof
(
int
)
);
...
...
@@ -999,7 +997,10 @@ static int ASF_ReadObject_advanced_mutual_exclusion( stream_t *s,
p_ae
->
i_stream_number_count
=
i
;
#ifdef ASF_DEBUG
msg_Dbg
(
s
,
"read
\"
advanced mutual exclusion object
\"
"
);
msg_Dbg
(
s
,
"read
\"
advanced mutual exclusion object
\"
type %s"
,
p_ae
->
exclusion_type
==
LANGUAGE
?
"Language"
:
(
p_ae
->
exclusion_type
==
BITRATE
)
?
"Bitrate"
:
"Unknown"
);
for
(
i
=
0
;
i
<
p_ae
->
i_stream_number_count
;
i
++
)
msg_Dbg
(
s
,
" - stream=%d"
,
p_ae
->
pi_stream_number
[
i
]
);
#endif
...
...
modules/demux/asf/libasf.h
View file @
8c36b8a0
...
...
@@ -275,11 +275,19 @@ typedef struct
asf_object_stream_properties_t
*
p_sp
;
}
asf_object_extended_stream_properties_t
;
#define ASF_MAX_EXCLUSION_TYPE 2
typedef
enum
{
LANGUAGE
=
ASF_MAX_EXCLUSION_TYPE
,
BITRATE
=
1
,
UNKNOWN
=
0
}
asf_exclusion_type_t
;
typedef
struct
{
ASF_OBJECT_COMMON
guid_t
type
;
asf_exclusion_type_t
exclusion_
type
;
int16_t
i_stream_number_count
;
int16_t
*
pi_stream_number
;
...
...
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