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
92f0aceb
Commit
92f0aceb
authored
Sep 27, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cinepakenc: Move declaration out of for initialisation statement
parent
2068d116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cinepakenc.c
libavcodec/cinepakenc.c
+2
-1
No files found.
libavcodec/cinepakenc.c
View file @
92f0aceb
...
@@ -891,8 +891,9 @@ static int rd_strip(CinepakEncContext *s, int y, int h, int keyframe,
...
@@ -891,8 +891,9 @@ static int rd_strip(CinepakEncContext *s, int y, int h, int keyframe,
#define SMALLEST_CODEBOOK 1
#define SMALLEST_CODEBOOK 1
for
(
v1enough
=
0
,
v1_size
=
SMALLEST_CODEBOOK
;
v1_size
<=
CODEBOOK_MAX
&&
!
v1enough
;
v1_size
<<=
2
)
{
for
(
v1enough
=
0
,
v1_size
=
SMALLEST_CODEBOOK
;
v1_size
<=
CODEBOOK_MAX
&&
!
v1enough
;
v1_size
<<=
2
)
{
for
(
v4enough
=
0
,
v4_size
=
0
;
v4_size
<=
v1_size
&&
!
v4enough
;
v4_size
=
v4_size
?
v4_size
<<
2
:
v1_size
>=
SMALLEST_CODEBOOK
<<
2
?
v1_size
>>
2
:
SMALLEST_CODEBOOK
)
{
for
(
v4enough
=
0
,
v4_size
=
0
;
v4_size
<=
v1_size
&&
!
v4enough
;
v4_size
=
v4_size
?
v4_size
<<
2
:
v1_size
>=
SMALLEST_CODEBOOK
<<
2
?
v1_size
>>
2
:
SMALLEST_CODEBOOK
)
{
CinepakMode
mode
;
// try all modes
// try all modes
for
(
CinepakMode
mode
=
0
;
mode
<
MODE_COUNT
;
mode
++
)
{
for
(
mode
=
0
;
mode
<
MODE_COUNT
;
mode
++
)
{
// don't allow MODE_MC in intra frames
// don't allow MODE_MC in intra frames
if
(
keyframe
&&
mode
==
MODE_MC
)
if
(
keyframe
&&
mode
==
MODE_MC
)
continue
;
continue
;
...
...
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