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
64a31ec9
Commit
64a31ec9
authored
Jun 28, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed buffer size computation with non zero bits per sample mod 8.
parent
e0c708fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/codec/araw.c
modules/codec/araw.c
+3
-1
No files found.
modules/codec/araw.c
View file @
64a31ec9
...
...
@@ -72,6 +72,7 @@ static block_t *EncoderEncode( encoder_t *, aout_buffer_t * );
struct
decoder_sys_t
{
const
int16_t
*
p_logtos16
;
/* used with m/alaw to int16_t */
int
i_bytespersample
;
audio_date_t
end_date
;
};
...
...
@@ -404,6 +405,7 @@ static int DecoderOpen( vlc_object_t *p_this )
aout_DateInit
(
&
p_sys
->
end_date
,
p_dec
->
fmt_out
.
audio
.
i_rate
);
aout_DateSet
(
&
p_sys
->
end_date
,
0
);
p_sys
->
i_bytespersample
=
(
p_dec
->
fmt_in
.
audio
.
i_bitspersample
+
7
)
/
8
;
p_dec
->
pf_decode_audio
=
DecodeBlock
;
...
...
@@ -441,7 +443,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
/* Don't re-use the same pts twice */
p_block
->
i_pts
=
0
;
i_samples
=
p_block
->
i_buffer
*
8
/
p_dec
->
fmt_in
.
audio
.
i_bit
spersample
/
i_samples
=
p_block
->
i_buffer
/
p_sys
->
i_byte
spersample
/
p_dec
->
fmt_in
.
audio
.
i_channels
;
if
(
i_samples
<=
0
)
...
...
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