Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7c39a792
Commit
7c39a792
authored
Jun 12, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flac: fix warnings (unsigned -> size_t)
parent
4f72229d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/codec/flac.c
modules/codec/flac.c
+6
-6
No files found.
modules/codec/flac.c
View file @
7c39a792
...
@@ -101,7 +101,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** );
...
@@ -101,7 +101,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *, block_t ** );
static
FLAC__StreamDecoderReadStatus
static
FLAC__StreamDecoderReadStatus
DecoderReadCallback
(
const
FLAC__StreamDecoder
*
decoder
,
DecoderReadCallback
(
const
FLAC__StreamDecoder
*
decoder
,
FLAC__byte
buffer
[],
unsigned
*
bytes
,
void
*
client_data
);
FLAC__byte
buffer
[],
size_t
*
bytes
,
void
*
client_data
);
static
FLAC__StreamDecoderWriteStatus
static
FLAC__StreamDecoderWriteStatus
DecoderWriteCallback
(
const
FLAC__StreamDecoder
*
decoder
,
DecoderWriteCallback
(
const
FLAC__StreamDecoder
*
decoder
,
...
@@ -308,7 +308,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -308,7 +308,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
*****************************************************************************/
*****************************************************************************/
static
FLAC__StreamDecoderReadStatus
static
FLAC__StreamDecoderReadStatus
DecoderReadCallback
(
const
FLAC__StreamDecoder
*
decoder
,
FLAC__byte
buffer
[],
DecoderReadCallback
(
const
FLAC__StreamDecoder
*
decoder
,
FLAC__byte
buffer
[],
unsigned
*
bytes
,
void
*
client_data
)
size_t
*
bytes
,
void
*
client_data
)
{
{
VLC_UNUSED
(
decoder
);
VLC_UNUSED
(
decoder
);
decoder_t
*
p_dec
=
(
decoder_t
*
)
client_data
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
client_data
;
...
@@ -316,7 +316,7 @@ DecoderReadCallback( const FLAC__StreamDecoder *decoder, FLAC__byte buffer[],
...
@@ -316,7 +316,7 @@ DecoderReadCallback( const FLAC__StreamDecoder *decoder, FLAC__byte buffer[],
if
(
p_sys
->
p_block
&&
p_sys
->
p_block
->
i_buffer
)
if
(
p_sys
->
p_block
&&
p_sys
->
p_block
->
i_buffer
)
{
{
*
bytes
=
__MIN
(
*
bytes
,
(
unsigned
)
p_sys
->
p_block
->
i_buffer
);
*
bytes
=
__MIN
(
*
bytes
,
p_sys
->
p_block
->
i_buffer
);
memcpy
(
buffer
,
p_sys
->
p_block
->
p_buffer
,
*
bytes
);
memcpy
(
buffer
,
p_sys
->
p_block
->
p_buffer
,
*
bytes
);
p_sys
->
p_block
->
i_buffer
-=
*
bytes
;
p_sys
->
p_block
->
i_buffer
-=
*
bytes
;
p_sys
->
p_block
->
p_buffer
+=
*
bytes
;
p_sys
->
p_block
->
p_buffer
+=
*
bytes
;
...
@@ -633,7 +633,7 @@ static block_t *Encode( encoder_t *, aout_buffer_t * );
...
@@ -633,7 +633,7 @@ static block_t *Encode( encoder_t *, aout_buffer_t * );
static
FLAC__StreamEncoderWriteStatus
static
FLAC__StreamEncoderWriteStatus
EncoderWriteCallback
(
const
FLAC__StreamEncoder
*
encoder
,
EncoderWriteCallback
(
const
FLAC__StreamEncoder
*
encoder
,
const
FLAC__byte
buffer
[],
const
FLAC__byte
buffer
[],
unsigned
bytes
,
unsigned
samples
,
size_t
bytes
,
unsigned
samples
,
unsigned
current_frame
,
void
*
client_data
);
unsigned
current_frame
,
void
*
client_data
);
static
void
EncoderMetadataCallback
(
const
FLAC__StreamEncoder
*
encoder
,
static
void
EncoderMetadataCallback
(
const
FLAC__StreamEncoder
*
encoder
,
...
@@ -785,7 +785,7 @@ static void EncoderMetadataCallback( const FLAC__StreamEncoder *encoder,
...
@@ -785,7 +785,7 @@ static void EncoderMetadataCallback( const FLAC__StreamEncoder *encoder,
static
FLAC__StreamEncoderWriteStatus
static
FLAC__StreamEncoderWriteStatus
EncoderWriteCallback
(
const
FLAC__StreamEncoder
*
encoder
,
EncoderWriteCallback
(
const
FLAC__StreamEncoder
*
encoder
,
const
FLAC__byte
buffer
[],
const
FLAC__byte
buffer
[],
unsigned
bytes
,
unsigned
samples
,
size_t
bytes
,
unsigned
samples
,
unsigned
current_frame
,
void
*
client_data
)
unsigned
current_frame
,
void
*
client_data
)
{
{
VLC_UNUSED
(
encoder
);
VLC_UNUSED
(
current_frame
);
VLC_UNUSED
(
encoder
);
VLC_UNUSED
(
current_frame
);
...
@@ -797,7 +797,7 @@ EncoderWriteCallback( const FLAC__StreamEncoder *encoder,
...
@@ -797,7 +797,7 @@ EncoderWriteCallback( const FLAC__StreamEncoder *encoder,
{
{
if
(
p_sys
->
i_headers
==
1
)
if
(
p_sys
->
i_headers
==
1
)
{
{
msg_Dbg
(
p_enc
,
"Writing STREAMINFO: %
i
"
,
bytes
);
msg_Dbg
(
p_enc
,
"Writing STREAMINFO: %
zu
"
,
bytes
);
/* Backup the STREAMINFO metadata block */
/* Backup the STREAMINFO metadata block */
p_enc
->
fmt_out
.
i_extra
=
STREAMINFO_SIZE
+
4
;
p_enc
->
fmt_out
.
i_extra
=
STREAMINFO_SIZE
+
4
;
...
...
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