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
785fa50f
Commit
785fa50f
authored
Jul 15, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buffersrc: avoid creating unnecessary buffer reference
parent
02ac7311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
buffersrc.c
libavfilter/buffersrc.c
+4
-6
No files found.
libavfilter/buffersrc.c
View file @
785fa50f
...
...
@@ -323,21 +323,19 @@ static int request_frame(AVFilterLink *link)
switch
(
link
->
type
)
{
case
AVMEDIA_TYPE_VIDEO
:
if
((
ret
=
ff_start_frame
(
link
,
avfilter_ref_buffer
(
buf
,
~
0
)
))
<
0
||
if
((
ret
=
ff_start_frame
(
link
,
buf
))
<
0
||
(
ret
=
ff_draw_slice
(
link
,
0
,
link
->
h
,
1
))
<
0
||
(
ret
=
ff_end_frame
(
link
))
<
0
)
goto
fail
;
return
ret
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
ret
=
ff_filter_samples
(
link
,
avfilter_ref_buffer
(
buf
,
~
0
)
);
ret
=
ff_filter_samples
(
link
,
buf
);
break
;
default:
avfilter_unref_bufferp
(
&
buf
);
return
AVERROR
(
EINVAL
);
}
fail:
avfilter_unref_buffer
(
buf
);
return
ret
;
}
...
...
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