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
ad8b6326
Commit
ad8b6326
authored
Jul 08, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_overlay: don't access a buffer reference that's been given away.
parent
7155763b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vf_overlay.c
libavfilter/vf_overlay.c
+1
-2
No files found.
libavfilter/vf_overlay.c
View file @
ad8b6326
...
@@ -214,7 +214,6 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
...
@@ -214,7 +214,6 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
AVFilterContext
*
ctx
=
inlink
->
dst
;
AVFilterContext
*
ctx
=
inlink
->
dst
;
OverlayContext
*
over
=
ctx
->
priv
;
OverlayContext
*
over
=
ctx
->
priv
;
inlink
->
dst
->
outputs
[
0
]
->
out_buf
=
outpicref
;
outpicref
->
pts
=
av_rescale_q
(
outpicref
->
pts
,
ctx
->
inputs
[
MAIN
]
->
time_base
,
outpicref
->
pts
=
av_rescale_q
(
outpicref
->
pts
,
ctx
->
inputs
[
MAIN
]
->
time_base
,
ctx
->
outputs
[
0
]
->
time_base
);
ctx
->
outputs
[
0
]
->
time_base
);
...
@@ -324,7 +323,7 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
...
@@ -324,7 +323,7 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
{
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
AVFilterContext
*
ctx
=
inlink
->
dst
;
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
AVFilterBufferRef
*
outpicref
=
outlink
->
out
_buf
;
AVFilterBufferRef
*
outpicref
=
inlink
->
cur
_buf
;
OverlayContext
*
over
=
ctx
->
priv
;
OverlayContext
*
over
=
ctx
->
priv
;
if
(
over
->
overpicref
&&
if
(
over
->
overpicref
&&
...
...
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