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
b97f6ef9
Commit
b97f6ef9
authored
Sep 26, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm-dvd: Move a variable to a smaller scope
This avoids an unused variable warning on big-endian systems.
parent
4d5b99da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pcm-dvd.c
libavcodec/pcm-dvd.c
+3
-3
No files found.
libavcodec/pcm-dvd.c
View file @
b97f6ef9
...
...
@@ -154,21 +154,21 @@ static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src,
GetByteContext
gb
;
int
i
;
uint8_t
t
;
int
samples
;
bytestream2_init
(
&
gb
,
src
,
blocks
*
s
->
block_size
);
switch
(
avctx
->
bits_per_coded_sample
)
{
case
16
:
case
16
:
{
#if HAVE_BIGENDIAN
bytestream2_get_buffer
(
&
gb
,
dst16
,
blocks
*
s
->
block_size
);
dst16
+=
blocks
*
s
->
block_size
/
2
;
#else
samples
=
blocks
*
avctx
->
channels
;
int
samples
=
blocks
*
avctx
->
channels
;
do
{
*
dst16
++
=
bytestream2_get_be16u
(
&
gb
);
}
while
(
--
samples
);
#endif
return
dst16
;
}
case
20
:
do
{
for
(
i
=
s
->
groups_per_block
;
i
;
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