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
fc6faee0
Commit
fc6faee0
authored
Sep 11, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpcm: move codec-specific variable declarations to their corresponding decoding blocks.
parent
989bb7bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dpcm.c
libavcodec/dpcm.c
+4
-4
No files found.
libavcodec/dpcm.c
View file @
fc6faee0
...
...
@@ -175,8 +175,6 @@ static int dpcm_decode_frame(AVCodecContext *avctx,
int
ch
=
0
;
int
stereo
=
s
->
channels
-
1
;
short
*
output_samples
=
data
;
int
shift
[
2
];
short
diff
;
if
(
!
buf_size
)
return
0
;
...
...
@@ -253,8 +251,9 @@ static int dpcm_decode_frame(AVCodecContext *avctx,
break
;
case
CODEC_ID_XAN_DPCM
:
{
int
shift
[
2
]
=
{
4
,
4
};
in
=
0
;
shift
[
0
]
=
shift
[
1
]
=
4
;
predictor
[
0
]
=
AV_RL16
(
&
buf
[
in
]);
in
+=
2
;
SE_16BIT
(
predictor
[
0
]);
...
...
@@ -266,7 +265,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx,
while
(
in
<
buf_size
)
{
uint8_t
n
=
buf
[
in
++
];
diff
=
(
n
&
0xFC
)
<<
8
;
int16_t
diff
=
(
n
&
0xFC
)
<<
8
;
if
((
n
&
0x03
)
==
3
)
shift
[
ch
]
++
;
else
...
...
@@ -285,6 +284,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx,
ch
^=
stereo
;
}
break
;
}
case
CODEC_ID_SOL_DPCM
:
in
=
0
;
if
(
avctx
->
codec_tag
!=
3
)
{
...
...
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