Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
25edfc88
Commit
25edfc88
authored
Dec 19, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adxenc: change some data types
parent
c98c6e18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
adxenc.c
libavcodec/adxenc.c
+6
-6
No files found.
libavcodec/adxenc.c
View file @
25edfc88
...
...
@@ -33,7 +33,7 @@
* adx2wav & wav2adx http://www.geocities.co.jp/Playtown/2004/
*/
static
void
adx_encode
(
ADXContext
*
c
,
u
nsigned
char
*
adx
,
const
shor
t
*
wav
,
static
void
adx_encode
(
ADXContext
*
c
,
u
int8_t
*
adx
,
const
int16_
t
*
wav
,
ADXChannelState
*
prev
)
{
PutBitContext
pb
;
...
...
@@ -76,7 +76,7 @@ static void adx_encode(ADXContext *c, unsigned char *adx, const short *wav,
flush_put_bits
(
&
pb
);
}
static
int
adx_encode_header
(
AVCodecContext
*
avctx
,
unsigned
char
*
buf
,
size_
t
bufsize
)
static
int
adx_encode_header
(
AVCodecContext
*
avctx
,
uint8_t
*
buf
,
in
t
bufsize
)
{
ADXContext
*
c
=
avctx
->
priv_data
;
...
...
@@ -121,8 +121,8 @@ static int adx_encode_frame(AVCodecContext *avctx,
uint8_t
*
frame
,
int
buf_size
,
void
*
data
)
{
ADXContext
*
c
=
avctx
->
priv_data
;
const
shor
t
*
samples
=
data
;
u
nsigned
char
*
dst
=
frame
;
const
int16_
t
*
samples
=
data
;
u
int8_t
*
dst
=
frame
;
int
rest
=
avctx
->
frame_size
;
if
(
!
c
->
header_parsed
)
{
...
...
@@ -140,7 +140,7 @@ static int adx_encode_frame(AVCodecContext *avctx,
}
}
else
{
while
(
rest
>=
32
*
2
)
{
shor
t
tmpbuf
[
32
*
2
];
int16_
t
tmpbuf
[
32
*
2
];
int
i
;
for
(
i
=
0
;
i
<
32
;
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