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
afe6ac24
Commit
afe6ac24
authored
Aug 01, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Modules.am : added aac.c and wav.c
* asf/asf.c: better check for invalid header.
parent
5aa4f283
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
modules/demux/Modules.am
modules/demux/Modules.am
+2
-0
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+4
-8
No files found.
modules/demux/Modules.am
View file @
afe6ac24
...
...
@@ -5,4 +5,6 @@ SOURCES_m3u = m3u.c
SOURCES_demuxdump = demuxdump.c
SOURCES_rawdv = rawdv.c
SOURCES_au = au.c
SOURCES_wav = wav.c
SOURCES_aac = aac.c
SOURCES_mkv = mkv.cpp
modules/demux/asf/asf.c
View file @
afe6ac24
...
...
@@ -2,7 +2,7 @@
* asf.c : ASFv01 file input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: asf.c,v 1.
29 2003/05/22 21:42:43 gbazin
Exp $
* $Id: asf.c,v 1.
30 2003/08/01 00:16:37 fenrir
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -280,16 +280,12 @@ static int Activate( vlc_object_t * p_this )
p_wf
->
nBlockAlign
=
GetWLE
(
p_data
+
12
);
p_wf
->
wBitsPerSample
=
GetWLE
(
p_data
+
14
);
input_AddInfo
(
p_cat
,
_
(
"Bits Per Sample"
),
"%d"
,
p_wf
->
wBitsPerSample
);
p_wf
->
cbSize
=
__MAX
(
0
,
i_size
-
sizeof
(
WAVEFORMATEX
));
if
(
i_size
>
sizeof
(
WAVEFORMATEX
)
)
p_wf
->
cbSize
=
__MIN
(
GetWLE
(
p_data
+
16
),
i_size
-
sizeof
(
WAVEFORMATEX
));
if
(
p_wf
->
cbSize
>
0
)
{
memcpy
(
(
uint8_t
*
)
p_wf
+
sizeof
(
WAVEFORMATEX
),
p_data
+
sizeof
(
WAVEFORMATEX
),
i_size
-
sizeof
(
WAVEFORMATEX
)
);
memcpy
(
&
p_wf
[
1
],
p_data
+
sizeof
(
WAVEFORMATEX
),
p_wf
->
cbSize
);
}
}
}
else
if
(
CmpGUID
(
&
p_sp
->
i_stream_type
,
&
asf_object_stream_type_video
)
)
...
...
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