Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
f8d58c59
Commit
f8d58c59
authored
Apr 27, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src_buffer: merge av_asrc_buffer_add_audio_buffer_ref.
Implement it using av_buffersrc_add_ref.
parent
be8edff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
src_buffer.c
libavfilter/src_buffer.c
+1
-21
No files found.
libavfilter/src_buffer.c
View file @
f8d58c59
...
...
@@ -570,27 +570,7 @@ int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *ctx,
AVFilterBufferRef
*
samplesref
,
int
av_unused
flags
)
{
BufferSourceContext
*
abuffer
=
ctx
->
priv
;
int
ret
;
if
(
av_fifo_space
(
abuffer
->
fifo
)
<
sizeof
(
samplesref
))
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Buffering limit reached. Please consume some available frames "
"before adding new ones.
\n
"
);
return
AVERROR
(
EINVAL
);
}
ret
=
check_format_change
(
ctx
,
samplesref
);
if
(
ret
<
0
)
return
ret
;
if
(
sizeof
(
samplesref
)
!=
av_fifo_generic_write
(
abuffer
->
fifo
,
&
samplesref
,
sizeof
(
samplesref
),
NULL
))
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Error while writing to FIFO
\n
"
);
return
AVERROR
(
EINVAL
);
}
return
0
;
return
av_buffersrc_add_ref
(
ctx
,
samplesref
,
AV_BUFFERSRC_FLAG_NO_COPY
);
}
int
av_asrc_buffer_add_samples
(
AVFilterContext
*
ctx
,
...
...
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