Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Stefan Strogin
flac
Commits
b4de1692
Commit
b4de1692
authored
Aug 24, 2005
by
Josh Coalson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes to remove warnings from gcc-4.0.0
parent
d263e6ee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
src/libFLAC/metadata_object.c
src/libFLAC/metadata_object.c
+4
-4
src/libOggFLAC/ogg_mapping.c
src/libOggFLAC/ogg_mapping.c
+1
-1
src/metaflac/utils.c
src/metaflac/utils.c
+1
-1
src/plugin_common/charset.c
src/plugin_common/charset.c
+1
-1
src/share/grabbag/replaygain.c
src/share/grabbag/replaygain.c
+4
-4
No files found.
src/libFLAC/metadata_object.c
View file @
b4de1692
...
...
@@ -1073,16 +1073,16 @@ FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_replace_comment(FLAC__St
field_name_length
=
eq
-
entry
.
entry
;
if
((
i
=
vorbiscomment_find_entry_from_
(
object
,
0
,
entry
.
entry
,
field_name_length
))
>=
0
)
{
if
((
i
=
vorbiscomment_find_entry_from_
(
object
,
0
,
(
const
char
*
)
entry
.
entry
,
field_name_length
))
>=
0
)
{
unsigned
index
=
(
unsigned
)
i
;
if
(
!
FLAC__metadata_object_vorbiscomment_set_comment
(
object
,
index
,
entry
,
copy
))
return
false
;
if
(
all
&&
(
index
+
1
<
object
->
data
.
vorbis_comment
.
num_comments
))
{
for
(
i
=
vorbiscomment_find_entry_from_
(
object
,
index
+
1
,
entry
.
entry
,
field_name_length
);
i
>=
0
;
)
{
for
(
i
=
vorbiscomment_find_entry_from_
(
object
,
index
+
1
,
(
const
char
*
)
entry
.
entry
,
field_name_length
);
i
>=
0
;
)
{
if
(
!
FLAC__metadata_object_vorbiscomment_delete_comment
(
object
,
(
unsigned
)
i
))
return
false
;
if
((
unsigned
)
i
<
object
->
data
.
vorbis_comment
.
num_comments
)
i
=
vorbiscomment_find_entry_from_
(
object
,
(
unsigned
)
i
,
entry
.
entry
,
field_name_length
);
i
=
vorbiscomment_find_entry_from_
(
object
,
(
unsigned
)
i
,
(
const
char
*
)
entry
.
entry
,
field_name_length
);
else
i
=
-
1
;
}
...
...
@@ -1124,7 +1124,7 @@ FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_entry_from_name_value_pa
if
(
!
FLAC__format_vorbiscomment_entry_name_is_legal
(
field_name
))
return
false
;
if
(
!
FLAC__format_vorbiscomment_entry_value_is_legal
(
field_value
,
(
unsigned
)(
-
1
)))
if
(
!
FLAC__format_vorbiscomment_entry_value_is_legal
(
(
const
FLAC__byte
*
)
field_value
,
(
unsigned
)(
-
1
)))
return
false
;
{
...
...
src/libOggFLAC/ogg_mapping.c
View file @
b4de1692
...
...
@@ -35,7 +35,7 @@ const unsigned OggFLAC__MAPPING_PACKET_TYPE_LEN = 8; /* bits */
const
FLAC__byte
OggFLAC__MAPPING_FIRST_HEADER_PACKET_TYPE
=
0x7f
;
const
FLAC__byte
*
const
OggFLAC__MAPPING_MAGIC
=
"FLAC"
;
const
FLAC__byte
*
const
OggFLAC__MAPPING_MAGIC
=
(
const
FLAC__byte
*
const
)
"FLAC"
;
const
unsigned
OggFLAC__MAPPING_VERSION_MAJOR_LEN
=
8
;
/* bits */
const
unsigned
OggFLAC__MAPPING_VERSION_MINOR_LEN
=
8
;
/* bits */
...
...
src/metaflac/utils.c
View file @
b4de1692
...
...
@@ -225,7 +225,7 @@ void write_vc_field(const char *filename, const FLAC__StreamMetadata_VorbisComme
*/
char
*
converted
;
if
(
utf8_decode
(
entry
->
entry
,
&
converted
)
>=
0
)
{
if
(
utf8_decode
(
(
const
char
*
)
entry
->
entry
,
&
converted
)
>=
0
)
{
(
void
)
local_fwrite
(
converted
,
1
,
strlen
(
converted
),
f
);
free
(
converted
);
}
...
...
src/plugin_common/charset.c
View file @
b4de1692
...
...
@@ -88,7 +88,7 @@ char* FLAC_plugin__charset_convert_string (const char *string, char *from, char
outptr
=
out
;
retry:
if
(
iconv
(
cd
,
(
char
**
)
&
input
,
&
length
,
&
outptr
,
&
outleft
)
==
-
1
)
if
(
iconv
(
cd
,
(
char
**
)
&
input
,
&
length
,
&
outptr
,
&
outleft
)
==
(
size_t
)(
-
1
)
)
{
int
used
;
switch
(
errno
)
...
...
src/share/grabbag/replaygain.c
View file @
b4de1692
...
...
@@ -41,10 +41,10 @@
#endif
#define local_max(a,b) ((a)>(b)?(a):(b))
static
const
FLAC__byte
*
tag_title_gain_
=
"REPLAYGAIN_TRACK_GAIN"
;
static
const
FLAC__byte
*
tag_title_peak_
=
"REPLAYGAIN_TRACK_PEAK"
;
static
const
FLAC__byte
*
tag_album_gain_
=
"REPLAYGAIN_ALBUM_GAIN"
;
static
const
FLAC__byte
*
tag_album_peak_
=
"REPLAYGAIN_ALBUM_PEAK"
;
static
const
FLAC__byte
*
const
tag_title_gain_
=
(
const
FLAC__byte
*
const
)
"REPLAYGAIN_TRACK_GAIN"
;
static
const
FLAC__byte
*
const
tag_title_peak_
=
(
const
FLAC__byte
*
const
)
"REPLAYGAIN_TRACK_PEAK"
;
static
const
FLAC__byte
*
const
tag_album_gain_
=
(
const
FLAC__byte
*
const
)
"REPLAYGAIN_ALBUM_GAIN"
;
static
const
FLAC__byte
*
const
tag_album_peak_
=
(
const
FLAC__byte
*
const
)
"REPLAYGAIN_ALBUM_PEAK"
;
static
const
char
*
peak_format_
=
"%s=%1.8f"
;
static
const
char
*
gain_format_
=
"%s=%+2.2f dB"
;
...
...
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