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
b0fdd348
Commit
b0fdd348
authored
Jun 26, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: deprecate av_buffersrc_buffer() function
Favor av_buffersrc_add_ref() instead, which is more powerful.
parent
cd8bef96
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
ffplay.c
ffplay.c
+1
-1
buffersrc.c
libavfilter/buffersrc.c
+2
-0
buffersrc.h
libavfilter/buffersrc.h
+4
-0
version.h
libavfilter/version.h
+3
-0
No files found.
ffplay.c
View file @
b0fdd348
...
@@ -1722,7 +1722,7 @@ static int video_thread(void *arg)
...
@@ -1722,7 +1722,7 @@ static int video_thread(void *arg)
fb
->
buf
->
free
=
filter_release_buffer
;
fb
->
buf
->
free
=
filter_release_buffer
;
buf
->
refcount
++
;
buf
->
refcount
++
;
av_buffersrc_
buffer
(
filt_in
,
fb
);
av_buffersrc_
add_ref
(
filt_in
,
fb
,
AV_BUFFERSRC_FLAG_NO_COPY
);
}
else
}
else
av_buffersrc_write_frame
(
filt_in
,
frame
);
av_buffersrc_write_frame
(
filt_in
,
frame
);
...
...
libavfilter/buffersrc.c
View file @
b0fdd348
...
@@ -196,10 +196,12 @@ int av_buffersrc_add_ref(AVFilterContext *s, AVFilterBufferRef *buf, int flags)
...
@@ -196,10 +196,12 @@ int av_buffersrc_add_ref(AVFilterContext *s, AVFilterBufferRef *buf, int flags)
return
0
;
return
0
;
}
}
#ifdef FF_API_BUFFERSRC_BUFFER
int
av_buffersrc_buffer
(
AVFilterContext
*
s
,
AVFilterBufferRef
*
buf
)
int
av_buffersrc_buffer
(
AVFilterContext
*
s
,
AVFilterBufferRef
*
buf
)
{
{
return
av_buffersrc_add_ref
(
s
,
buf
,
AV_BUFFERSRC_FLAG_NO_COPY
);
return
av_buffersrc_add_ref
(
s
,
buf
,
AV_BUFFERSRC_FLAG_NO_COPY
);
}
}
#endif
unsigned
av_buffersrc_get_nb_failed_requests
(
AVFilterContext
*
buffer_src
)
unsigned
av_buffersrc_get_nb_failed_requests
(
AVFilterContext
*
buffer_src
)
{
{
...
...
libavfilter/buffersrc.h
View file @
b0fdd348
...
@@ -63,14 +63,18 @@ int av_buffersrc_add_ref(AVFilterContext *buffer_src,
...
@@ -63,14 +63,18 @@ int av_buffersrc_add_ref(AVFilterContext *buffer_src,
*/
*/
unsigned
av_buffersrc_get_nb_failed_requests
(
AVFilterContext
*
buffer_src
);
unsigned
av_buffersrc_get_nb_failed_requests
(
AVFilterContext
*
buffer_src
);
#ifdef FF_API_BUFFERSRC_BUFFER
/**
/**
* Add a buffer to the filtergraph s.
* Add a buffer to the filtergraph s.
*
*
* @param buf buffer containing frame data to be passed down the filtergraph.
* @param buf buffer containing frame data to be passed down the filtergraph.
* This function will take ownership of buf, the user must not free it.
* This function will take ownership of buf, the user must not free it.
* A NULL buf signals EOF -- i.e. no more frames will be sent to this filter.
* A NULL buf signals EOF -- i.e. no more frames will be sent to this filter.
* @deprecated Use av_buffersrc_add_ref(s, picref, AV_BUFFERSRC_FLAG_NO_COPY) instead.
*/
*/
attribute_deprecated
int
av_buffersrc_buffer
(
AVFilterContext
*
s
,
AVFilterBufferRef
*
buf
);
int
av_buffersrc_buffer
(
AVFilterContext
*
s
,
AVFilterBufferRef
*
buf
);
#endif
/**
/**
* Add a frame to the buffer source.
* Add a frame to the buffer source.
...
...
libavfilter/version.h
View file @
b0fdd348
...
@@ -56,5 +56,8 @@
...
@@ -56,5 +56,8 @@
#ifndef FF_API_FILL_FRAME
#ifndef FF_API_FILL_FRAME
#define FF_API_FILL_FRAME (LIBAVFILTER_VERSION_MAJOR < 4)
#define FF_API_FILL_FRAME (LIBAVFILTER_VERSION_MAJOR < 4)
#endif
#endif
#ifndef FF_API_BUFFERSRC_BUFFER
#define FF_API_BUFFERSRC_BUFFER (LIBAVFILTER_VERSION_MAJOR < 4)
#endif
#endif // AVFILTER_VERSION_H
#endif // AVFILTER_VERSION_H
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