Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flac
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
flac
Commits
00ae9c68
Unverified
Commit
00ae9c68
authored
1 month ago
by
Martijn van Beurden
Committed by
GitHub
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix some compiler warnings (#796)
parent
6974998f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libFLAC/ogg_decoder_aspect.c
+1
-1
1 addition, 1 deletion
src/libFLAC/ogg_decoder_aspect.c
src/test_seeking/main.c
+1
-1
1 addition, 1 deletion
src/test_seeking/main.c
with
2 additions
and
2 deletions
src/libFLAC/ogg_decoder_aspect.c
+
1
−
1
View file @
00ae9c68
...
...
@@ -89,7 +89,7 @@ static FLAC__OggDecoderAspectReadStatus process_page_(FLAC__OggDecoderAspect *as
/* Check whether not FLAC. The next if is somewhat confusing: check
* whether the length of the next page body agrees with the length
* of a FLAC 'header' possibly contained in that page */
if
(
aspect
->
working_page
.
body_len
>
1
+
FLAC__OGG_MAPPING_MAGIC_LENGTH
&&
if
(
aspect
->
working_page
.
body_len
>
(
long
)(
1
+
FLAC__OGG_MAPPING_MAGIC_LENGTH
)
&&
aspect
->
working_page
.
body
[
0
]
==
FLAC__OGG_MAPPING_FIRST_HEADER_PACKET_TYPE
&&
memcmp
((
&
aspect
->
working_page
.
body
)
+
1
,
FLAC__OGG_MAPPING_MAGIC
,
FLAC__OGG_MAPPING_MAGIC_LENGTH
))
{
aspect
->
bos_flag_seen
=
true
;
...
...
This diff is collapsed.
Click to expand it.
src/test_seeking/main.c
+
1
−
1
View file @
00ae9c68
...
...
@@ -322,7 +322,7 @@ static FLAC__bool seek_barrage(FLAC__bool is_ogg, const char *filename, FLAC__of
if
(
total_samples
>
n
)
n
=
(
long
int
)
total_samples
;
printf
(
"file's total_samples is %
"
PRIu64
"
\n
"
,
n
);
printf
(
"file's total_samples is %
ld
\n
"
,
n
);
/* if we don't have a total samples count, just guess based on the file size */
/* @@@ for is_ogg we should get it from last page's granulepos */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment