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
00e02366
Commit
00e02366
authored
Nov 20, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcmenc: use ENCODE macro for pcm_s8
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
2d232f8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
pcm.c
libavcodec/pcm.c
+2
-6
No files found.
libavcodec/pcm.c
View file @
00e02366
...
...
@@ -85,7 +85,7 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
int
n
,
sample_size
,
v
,
ret
;
const
short
*
samples
;
unsigned
char
*
dst
;
const
uint8_t
*
s
rcu8
;
const
uint8_t
*
s
amples_uint8_t
;
const
int16_t
*
samples_int16_t
;
const
int32_t
*
samples_int32_t
;
const
int64_t
*
samples_int64_t
;
...
...
@@ -135,11 +135,7 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
ENCODE
(
uint16_t
,
be16
,
samples
,
dst
,
n
,
0
,
0x8000
)
break
;
case
AV_CODEC_ID_PCM_S8
:
srcu8
=
frame
->
data
[
0
];
for
(;
n
>
0
;
n
--
)
{
v
=
*
srcu8
++
;
*
dst
++
=
v
-
128
;
}
ENCODE
(
uint8_t
,
byte
,
samples
,
dst
,
n
,
0
,
-
128
)
break
;
#if HAVE_BIGENDIAN
case
AV_CODEC_ID_PCM_F64LE
:
...
...
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