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
337d1056
Commit
337d1056
authored
Oct 08, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix signed warning
parent
86126d79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/flac.c
modules/codec/flac.c
+4
-4
No files found.
modules/codec/flac.c
View file @
337d1056
...
...
@@ -1115,7 +1115,7 @@ struct encoder_sys_t
int
i_channels
;
FLAC__int32
*
p_buffer
;
int
i_buffer
;
unsigned
int
i_buffer
;
block_t
*
p_chain
;
...
...
@@ -1207,7 +1207,7 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
{
encoder_sys_t
*
p_sys
=
p_enc
->
p_sys
;
block_t
*
p_chain
;
int
i
;
unsigned
int
i
;
p_sys
->
i_pts
=
p_aout_buf
->
start_date
-
(
mtime_t
)
1000000
*
(
mtime_t
)
p_sys
->
i_samples_delay
/
...
...
@@ -1216,14 +1216,14 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
p_sys
->
i_samples_delay
+=
p_aout_buf
->
i_nb_samples
;
/* Convert samples to FLAC__int32 */
if
(
p_sys
->
i_buffer
<
p_aout_buf
->
i_nb_bytes
*
2
)
if
(
p_sys
->
i_buffer
<
(
p_aout_buf
->
i_nb_bytes
*
2
)
)
{
p_sys
->
p_buffer
=
realloc
(
p_sys
->
p_buffer
,
p_aout_buf
->
i_nb_bytes
*
2
);
p_sys
->
i_buffer
=
p_aout_buf
->
i_nb_bytes
*
2
;
}
for
(
i
=
0
;
i
<
p_aout_buf
->
i_nb_bytes
/
2
;
i
++
)
for
(
i
=
0
;
i
<
(
p_aout_buf
->
i_nb_bytes
/
2
)
;
i
++
)
{
p_sys
->
p_buffer
[
i
]
=
((
int16_t
*
)
p_aout_buf
->
p_buffer
)[
i
];
}
...
...
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