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
05776119
Commit
05776119
authored
Jul 20, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buffersrc: use avfilter_get_buffer_ref_from_frame.
parent
5c5f75b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
buffersrc.c
libavfilter/buffersrc.c
+2
-10
No files found.
libavfilter/buffersrc.c
View file @
05776119
...
...
@@ -83,16 +83,8 @@ int av_buffersrc_add_frame(AVFilterContext *buffer_src,
if
(
!
frame
)
/* NULL for EOF */
return
av_buffersrc_add_ref
(
buffer_src
,
NULL
,
flags
);
switch
(
buffer_src
->
outputs
[
0
]
->
type
)
{
case
AVMEDIA_TYPE_VIDEO
:
picref
=
avfilter_get_video_buffer_ref_from_frame
(
frame
,
AV_PERM_WRITE
);
break
;
case
AVMEDIA_TYPE_AUDIO
:
picref
=
avfilter_get_audio_buffer_ref_from_frame
(
frame
,
AV_PERM_WRITE
);
break
;
default:
return
AVERROR
(
ENOSYS
);
}
picref
=
avfilter_get_buffer_ref_from_frame
(
buffer_src
->
outputs
[
0
]
->
type
,
frame
,
AV_PERM_WRITE
);
if
(
!
picref
)
return
AVERROR
(
ENOMEM
);
ret
=
av_buffersrc_add_ref
(
buffer_src
,
picref
,
flags
);
...
...
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