Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4b47be3d
Commit
4b47be3d
authored
Nov 23, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* adpcm: bug fixes.
parent
8259076d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/codec/adpcm.c
modules/codec/adpcm.c
+8
-4
No files found.
modules/codec/adpcm.c
View file @
4b47be3d
...
...
@@ -2,7 +2,7 @@
* adpcm.c : adpcm variant audio decoder
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: adpcm.c,v 1.1
7 2003/11/22 23:39:14
fenrir Exp $
* $Id: adpcm.c,v 1.1
8 2003/11/23 04:58:00
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -178,12 +178,16 @@ static int OpenDecoder( vlc_object_t *p_this )
break
;
}
if
(
1
)
//( p_sys->i_block = p_wf->nBlockAlign )
<= 0 )
if
(
p_dec
->
fmt_in
.
audio
.
i_blockalign
<=
0
)
{
p_sys
->
i_block
=
(
p_sys
->
codec
==
ADPCM_IMA_QT
)
?
34
*
p_dec
->
fmt_in
.
audio
.
i_channels
:
1024
;
msg_Warn
(
p_dec
,
"block size undefined, -> using %d"
,
p_sys
->
i_block
);
}
else
{
p_sys
->
i_block
=
p_dec
->
fmt_in
.
audio
.
i_blockalign
;
}
/* calculate samples per block */
switch
(
p_sys
->
codec
)
...
...
@@ -301,8 +305,8 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
break
;
}
p_block
->
p_buffer
+=
p_
out
->
i_nb_bytes
;
p_block
->
i_buffer
-=
p_
out
->
i_nb_bytes
;
p_block
->
p_buffer
+=
p_
sys
->
i_block
;
p_block
->
i_buffer
-=
p_
sys
->
i_block
;
return
p_out
;
}
...
...
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