Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
ddcb99bb
Commit
ddcb99bb
authored
Jul 23, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_deshake: set cur_buf to NULL.
Fix a segfault.
parent
6d4c97bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
vf_deshake.c
libavfilter/vf_deshake.c
+1
-0
No files found.
libavfilter/vf_deshake.c
View file @
ddcb99bb
...
@@ -435,6 +435,7 @@ static int end_frame(AVFilterLink *link)
...
@@ -435,6 +435,7 @@ static int end_frame(AVFilterLink *link)
float
alpha
=
2
.
0
/
deshake
->
refcount
;
float
alpha
=
2
.
0
/
deshake
->
refcount
;
char
tmp
[
256
];
char
tmp
[
256
];
link
->
cur_buf
=
NULL
;
/* it is in 'in' now */
if
(
deshake
->
cx
<
0
||
deshake
->
cy
<
0
||
deshake
->
cw
<
0
||
deshake
->
ch
<
0
)
{
if
(
deshake
->
cx
<
0
||
deshake
->
cy
<
0
||
deshake
->
cw
<
0
||
deshake
->
ch
<
0
)
{
// Find the most likely global motion for the current frame
// Find the most likely global motion for the current frame
find_motion
(
deshake
,
(
deshake
->
ref
==
NULL
)
?
in
->
data
[
0
]
:
deshake
->
ref
->
data
[
0
],
in
->
data
[
0
],
link
->
w
,
link
->
h
,
in
->
linesize
[
0
],
&
t
);
find_motion
(
deshake
,
(
deshake
->
ref
==
NULL
)
?
in
->
data
[
0
]
:
deshake
->
ref
->
data
[
0
],
in
->
data
[
0
],
link
->
w
,
link
->
h
,
in
->
linesize
[
0
],
&
t
);
...
...
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