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
675e83bb
Commit
675e83bb
authored
May 05, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asrc_abuffer: deprecate av_asrc_buffer_* functions.
parent
6073ce71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
asrc_abuffer.h
libavfilter/asrc_abuffer.h
+9
-0
src_buffer.c
libavfilter/src_buffer.c
+4
-0
No files found.
libavfilter/asrc_abuffer.h
View file @
675e83bb
...
@@ -38,7 +38,10 @@
...
@@ -38,7 +38,10 @@
* @param planar flag to indicate if audio data is planar or packed
* @param planar flag to indicate if audio data is planar or packed
* @param pts presentation timestamp of the audio buffer
* @param pts presentation timestamp of the audio buffer
* @param flags unused
* @param flags unused
*
* @deprecated use av_buffersrc_add_ref() instead.
*/
*/
attribute_deprecated
int
av_asrc_buffer_add_samples
(
AVFilterContext
*
abuffersrc
,
int
av_asrc_buffer_add_samples
(
AVFilterContext
*
abuffersrc
,
uint8_t
*
data
[
8
],
int
linesize
[
8
],
uint8_t
*
data
[
8
],
int
linesize
[
8
],
int
nb_samples
,
int
sample_rate
,
int
nb_samples
,
int
sample_rate
,
...
@@ -59,7 +62,10 @@ int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc,
...
@@ -59,7 +62,10 @@ int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc,
* @param ch_layout channel layout of the audio data
* @param ch_layout channel layout of the audio data
* @param pts presentation timestamp of the audio buffer
* @param pts presentation timestamp of the audio buffer
* @param flags unused
* @param flags unused
*
* @deprecated use av_buffersrc_add_ref() instead.
*/
*/
attribute_deprecated
int
av_asrc_buffer_add_buffer
(
AVFilterContext
*
abuffersrc
,
int
av_asrc_buffer_add_buffer
(
AVFilterContext
*
abuffersrc
,
uint8_t
*
buf
,
int
buf_size
,
uint8_t
*
buf
,
int
buf_size
,
int
sample_rate
,
int
sample_rate
,
...
@@ -72,7 +78,10 @@ int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc,
...
@@ -72,7 +78,10 @@ int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc,
* @param abuffersrc audio source buffer context
* @param abuffersrc audio source buffer context
* @param samplesref buffer ref to queue
* @param samplesref buffer ref to queue
* @param flags unused
* @param flags unused
*
* @deprecated use av_buffersrc_add_ref() instead.
*/
*/
attribute_deprecated
int
av_asrc_buffer_add_audio_buffer_ref
(
AVFilterContext
*
abuffersrc
,
int
av_asrc_buffer_add_audio_buffer_ref
(
AVFilterContext
*
abuffersrc
,
AVFilterBufferRef
*
samplesref
,
AVFilterBufferRef
*
samplesref
,
int
av_unused
flags
);
int
av_unused
flags
);
...
...
libavfilter/src_buffer.c
View file @
675e83bb
...
@@ -607,7 +607,9 @@ int av_asrc_buffer_add_samples(AVFilterContext *ctx,
...
@@ -607,7 +607,9 @@ int av_asrc_buffer_add_samples(AVFilterContext *ctx,
samplesref
->
pts
=
pts
;
samplesref
->
pts
=
pts
;
samplesref
->
audio
->
sample_rate
=
sample_rate
;
samplesref
->
audio
->
sample_rate
=
sample_rate
;
AV_NOWARN_DEPRECATED
(
return
av_asrc_buffer_add_audio_buffer_ref
(
ctx
,
samplesref
,
0
);
return
av_asrc_buffer_add_audio_buffer_ref
(
ctx
,
samplesref
,
0
);
)
}
}
int
av_asrc_buffer_add_buffer
(
AVFilterContext
*
ctx
,
int
av_asrc_buffer_add_buffer
(
AVFilterContext
*
ctx
,
...
@@ -624,11 +626,13 @@ int av_asrc_buffer_add_buffer(AVFilterContext *ctx,
...
@@ -624,11 +626,13 @@ int av_asrc_buffer_add_buffer(AVFilterContext *ctx,
buf
,
nb_channels
,
nb_samples
,
buf
,
nb_channels
,
nb_samples
,
sample_fmt
,
16
);
sample_fmt
,
16
);
AV_NOWARN_DEPRECATED
(
return
av_asrc_buffer_add_samples
(
ctx
,
return
av_asrc_buffer_add_samples
(
ctx
,
data
,
linesize
,
nb_samples
,
data
,
linesize
,
nb_samples
,
sample_rate
,
sample_rate
,
sample_fmt
,
channel_layout
,
planar
,
sample_fmt
,
channel_layout
,
planar
,
pts
,
flags
);
pts
,
flags
);
)
}
}
AVFilter
avfilter_vsrc_buffer
=
{
AVFilter
avfilter_vsrc_buffer
=
{
...
...
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