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
f3876ea4
Commit
f3876ea4
authored
Jun 14, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move some variable declarations below the proper #ifdefs.
This avoids warnings about set-but-unused variables.
parent
d0ce090e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ffplay.c
ffplay.c
+2
-2
fft-test.c
libavcodec/fft-test.c
+3
-2
No files found.
ffplay.c
View file @
f3876ea4
...
...
@@ -1313,9 +1313,10 @@ static void alloc_picture(void *opaque)
static
int
queue_picture
(
VideoState
*
is
,
AVFrame
*
src_frame
,
double
pts
,
int64_t
pos
)
{
VideoPicture
*
vp
;
int
dst_pix_fmt
;
#if CONFIG_AVFILTER
AVPicture
pict_src
;
#else
int
dst_pix_fmt
=
PIX_FMT_YUV420P
;
#endif
/* wait until we have space to put a new picture */
SDL_LockMutex
(
is
->
pictq_mutex
);
...
...
@@ -1376,7 +1377,6 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts, int64_t
/* get a pointer on the bitmap */
SDL_LockYUVOverlay
(
vp
->
bmp
);
dst_pix_fmt
=
PIX_FMT_YUV420P
;
memset
(
&
pict
,
0
,
sizeof
(
AVPicture
));
pict
.
data
[
0
]
=
vp
->
bmp
->
pixels
[
0
];
pict
.
data
[
1
]
=
vp
->
bmp
->
pixels
[
2
];
...
...
libavcodec/fft-test.c
View file @
f3876ea4
...
...
@@ -252,8 +252,9 @@ int main(int argc, char **argv)
#if CONFIG_FFT_FLOAT
RDFTContext
r1
,
*
r
=
&
r1
;
DCTContext
d1
,
*
d
=
&
d1
;
int
fft_size_2
;
#endif
int
fft_nbits
,
fft_size
,
fft_size_2
;
int
fft_nbits
,
fft_size
;
double
scale
=
1
.
0
;
AVLFG
prng
;
av_lfg_init
(
&
prng
,
1
);
...
...
@@ -292,7 +293,6 @@ int main(int argc, char **argv)
}
fft_size
=
1
<<
fft_nbits
;
fft_size_2
=
fft_size
>>
1
;
tab
=
av_malloc
(
fft_size
*
sizeof
(
FFTComplex
));
tab1
=
av_malloc
(
fft_size
*
sizeof
(
FFTComplex
));
tab_ref
=
av_malloc
(
fft_size
*
sizeof
(
FFTComplex
));
...
...
@@ -372,6 +372,7 @@ int main(int argc, char **argv)
break
;
#if CONFIG_FFT_FLOAT
case
TRANSFORM_RDFT
:
fft_size_2
=
fft_size
>>
1
;
if
(
do_inverse
)
{
tab1
[
0
].
im
=
0
;
tab1
[
fft_size_2
].
im
=
0
;
...
...
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