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
23445cd5
Commit
23445cd5
authored
Nov 22, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: asf: reject DRM'ed files
Keep #8241 open ???
parent
5606132e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+11
-0
modules/demux/asf/libasf.c
modules/demux/asf/libasf.c
+16
-0
No files found.
modules/demux/asf/asf.c
View file @
23445cd5
...
...
@@ -755,6 +755,17 @@ static int DemuxInit( demux_t *p_demux )
goto
error
;
}
if
(
ASF_FindObject
(
p_sys
->
p_root
->
p_hdr
,
&
asf_object_content_encryption_guid
,
0
)
!=
NULL
||
ASF_FindObject
(
p_sys
->
p_root
->
p_hdr
,
&
asf_object_extended_content_encryption_guid
,
0
)
!=
NULL
||
ASF_FindObject
(
p_sys
->
p_root
->
p_hdr
,
&
asf_object_advanced_content_encryption_guid
,
0
)
!=
NULL
)
{
msg_Warn
(
p_demux
,
"ASF plugin discarded (DRM encumbered content)"
);
goto
error
;
}
p_sys
->
i_track
=
ASF_CountObject
(
p_sys
->
p_root
->
p_hdr
,
&
asf_object_stream_properties_guid
);
if
(
p_sys
->
i_track
<=
0
)
...
...
modules/demux/asf/libasf.c
View file @
23445cd5
...
...
@@ -1241,6 +1241,13 @@ static void ASF_FreeObject_marker( asf_object_t *p_obj)
FREENULL
(
p_mk
->
name
);
}
static
int
ASF_ReadObject_Raw
(
stream_t
*
s
,
asf_object_t
*
p_obj
)
{
VLC_UNUSED
(
s
);
VLC_UNUSED
(
p_obj
);
return
VLC_SUCCESS
;
}
#if 0
static int ASF_ReadObject_XXX(stream_t *s, asf_object_t *p_obj)
{
...
...
@@ -1318,6 +1325,12 @@ static const struct
{
&
asf_object_extended_content_description
,
ASF_OBJECT_OTHER
,
ASF_ReadObject_extended_content_description
,
ASF_FreeObject_extended_content_description
},
{
&
asf_object_content_encryption_guid
,
ASF_OBJECT_OTHER
,
ASF_ReadObject_Raw
,
ASF_FreeObject_Null
},
{
&
asf_object_advanced_content_encryption_guid
,
ASF_OBJECT_OTHER
,
ASF_ReadObject_Raw
,
ASF_FreeObject_Null
},
{
&
asf_object_extended_content_encryption_guid
,
ASF_OBJECT_OTHER
,
ASF_ReadObject_Raw
,
ASF_FreeObject_Null
},
{
&
asf_object_null_guid
,
0
,
NULL
,
NULL
}
};
...
...
@@ -1468,6 +1481,9 @@ static const struct
{
&
asf_object_advanced_mutual_exclusion
,
"Advanced Mutual Exclusion"
},
{
&
asf_object_stream_prioritization
,
"Stream Prioritization"
},
{
&
asf_object_extended_content_description
,
"Extended content description"
},
{
&
asf_object_content_encryption_guid
,
"Content Encryption"
},
{
&
asf_object_advanced_content_encryption_guid
,
"Advanced Content Encryption"
},
{
&
asf_object_extended_content_encryption_guid
,
"Entended Content Encryption"
},
{
NULL
,
"Unknown"
},
};
...
...
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