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
68c0144c
Commit
68c0144c
authored
Aug 24, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning and remove unneeded function parameters.
parent
4774dc6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/demux/flac.c
modules/demux/flac.c
+7
-7
No files found.
modules/demux/flac.c
View file @
68c0144c
...
...
@@ -431,7 +431,7 @@ static inline int Get24bBE( const uint8_t *p )
return
(
p
[
0
]
<<
16
)
|
(
p
[
1
]
<<
8
)
|
(
p
[
2
]);
}
static
void
ParseStreamInfo
(
demux_t
*
p_demux
,
int
*
pi_rate
,
int64_t
*
pi_count
,
uint8_t
*
p_data
,
int
i
_data
);
static
void
ParseStreamInfo
(
int
*
pi_rate
,
int64_t
*
pi_count
,
uint8_t
*
p
_data
);
static
void
ParseSeekTable
(
demux_t
*
p_demux
,
const
uint8_t
*
p_data
,
int
i_data
,
int
i_sample_rate
);
static
void
ParseComment
(
demux_t
*
,
const
uint8_t
*
p_data
,
int
i_data
);
...
...
@@ -473,7 +473,7 @@ static int ReadMeta( demux_t *p_demux, uint8_t **pp_streaminfo, int *pi_streami
}
/* */
ParseStreamInfo
(
p_demux
,
&
i_sample_rate
,
&
i_sample_count
,
*
pp_streaminfo
,
*
pi
_streaminfo
);
ParseStreamInfo
(
&
i_sample_rate
,
&
i_sample_count
,
*
pp
_streaminfo
);
if
(
i_sample_rate
>
0
)
p_sys
->
i_length
=
i_sample_count
*
INT64_C
(
1000000
)
/
i_sample_rate
;
...
...
@@ -524,7 +524,7 @@ static int ReadMeta( demux_t *p_demux, uint8_t **pp_streaminfo, int *pi_streami
return
VLC_SUCCESS
;
}
static
void
ParseStreamInfo
(
demux_t
*
p_demux
,
int
*
pi_rate
,
int64_t
*
pi_count
,
uint8_t
*
p_data
,
int
i
_data
)
static
void
ParseStreamInfo
(
int
*
pi_rate
,
int64_t
*
pi_count
,
uint8_t
*
p
_data
)
{
const
int
i_skip
=
4
+
4
;
...
...
@@ -620,7 +620,7 @@ static void ParseComment( demux_t *p_demux, const uint8_t *p_data, int i_data )
if
(
n
<=
0
)
continue
;
psz
=
strndup
(
p_data
,
n
);
psz
=
strndup
(
(
const
char
*
)
p_data
,
n
);
RM
(
n
);
EnsureUTF8
(
psz
);
...
...
@@ -693,11 +693,11 @@ static void ParsePicture( demux_t *p_demux, const uint8_t *p_data, int i_data )
i_len
=
GetDWBE
(
p_data
);
RM
(
4
);
if
(
i_len
<
0
||
i_data
<
i_len
+
4
)
goto
error
;
psz_mime
=
strndup
(
p_data
,
i_len
);
RM
(
i_len
);
psz_mime
=
strndup
(
(
const
char
*
)
p_data
,
i_len
);
RM
(
i_len
);
i_len
=
GetDWBE
(
p_data
);
RM
(
4
);
if
(
i_len
<
0
||
i_data
<
i_len
+
4
*
4
+
4
)
goto
error
;
psz_description
=
strndup
(
p_data
,
i_len
);
RM
(
i_len
);
psz_description
=
strndup
(
(
const
char
*
)
p_data
,
i_len
);
RM
(
i_len
);
EnsureUTF8
(
psz_description
);
RM
(
4
*
4
);
i_len
=
GetDWBE
(
p_data
);
RM
(
4
);
...
...
@@ -717,7 +717,7 @@ static void ParsePicture( demux_t *p_demux, const uint8_t *p_data, int i_data )
p_data
,
i_data
);
TAB_APPEND
(
p_sys
->
i_attachments
,
p_sys
->
attachments
,
p_attachment
);
if
(
i_type
>=
0
&&
i_type
<
sizeof
(
pi_cover_score
)
/
sizeof
(
pi_cover_score
[
0
])
&&
if
(
i_type
>=
0
&&
(
unsigned
int
)
i_type
<
sizeof
(
pi_cover_score
)
/
sizeof
(
pi_cover_score
[
0
])
&&
p_sys
->
i_cover_score
<
pi_cover_score
[
i_type
]
)
{
p_sys
->
i_cover_idx
=
p_sys
->
i_attachments
-
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