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
5886153d
Commit
5886153d
authored
Sep 19, 2019
by
Andreas Rheinhardt
Committed by
Paul B Mahol
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/pcm: Cosmetics
Signed-off-by:
Andreas Rheinhardt
<
andreas.rheinhardt@gmail.com
>
parent
69473bec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
pcm.c
libavcodec/pcm.c
+14
-14
No files found.
libavcodec/pcm.c
View file @
5886153d
...
...
@@ -300,23 +300,23 @@ static av_cold int pcm_decode_close(AVCodecContext *avctx)
* @param shift Bitshift (bits)
* @param offset Sample value offset
*/
#define DECODE(size, endian, src, dst, n, shift, offset) \
for (; n > 0; n--) { \
uint ## size ## _t v = bytestream_get_ ## endian(&src); \
AV_WN ## size ## A(dst, (uint ## size ## _t)(v - offset) << shift); \
dst += size / 8; \
#define DECODE(size, endian, src, dst, n, shift, offset)
\
for (; n > 0; n--) {
\
uint ## size ## _t v = bytestream_get_ ## endian(&src);
\
AV_WN ## size ## A(dst, (uint ## size ## _t)(v - offset) << shift);
\
dst += size / 8;
\
}
#define DECODE_PLANAR(size, endian, src, dst, n, shift, offset) \
n /= avctx->channels; \
for (c = 0; c < avctx->channels; c++) { \
int i; \
dst = frame->extended_data[c]; \
for (i = n; i > 0; i--) { \
uint ## size ## _t v = bytestream_get_ ## endian(&src); \
#define DECODE_PLANAR(size, endian, src, dst, n, shift, offset)
\
n /= avctx->channels;
\
for (c = 0; c < avctx->channels; c++) {
\
int i;
\
dst = frame->extended_data[c];
\
for (i = n; i > 0; i--) {
\
uint ## size ## _t v = bytestream_get_ ## endian(&src);
\
AV_WN ## size ## A(dst, (uint ## size ##_t)(v - offset) << shift); \
dst += size / 8; \
} \
dst += size / 8;
\
}
\
}
static
int
pcm_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
...
...
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