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
b0f270fd
Commit
b0f270fd
authored
Oct 04, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deshake: move angles from stack to heap.
Fixes Ticket530 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1e4da603
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vf_deshake.c
libavfilter/vf_deshake.c
+2
-1
No files found.
libavfilter/vf_deshake.c
View file @
b0f270fd
...
...
@@ -251,7 +251,7 @@ static void find_motion(DeshakeContext *deshake, uint8_t *src1, uint8_t *src2,
int
contrast
;
int
pos
;
double
angles
[
1200
]
;
double
*
angles
=
av_malloc
(
sizeof
(
double
)
*
width
*
height
/
(
16
*
deshake
->
blocksize
))
;
double
totalangles
=
0
;
int
center_x
=
0
,
center_y
=
0
;
...
...
@@ -327,6 +327,7 @@ static void find_motion(DeshakeContext *deshake, uint8_t *src1, uint8_t *src2,
t
->
angle
=
av_clipf
(
t
->
angle
,
-
0
.
1
,
0
.
1
);
//av_log(NULL, AV_LOG_ERROR, "%d x %d\n", avg->x, avg->y);
av_free
(
angles
);
}
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
,
void
*
opaque
)
...
...
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