Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
34de47aa
Commit
34de47aa
authored
12 years ago
by
Nicolas George
Browse files
Options
Downloads
Patches
Plain Diff
lavfi: add an accessor for ref->audio->channels.
parent
238edd2f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/APIchanges
+4
-0
4 additions, 0 deletions
doc/APIchanges
libavfilter/audio.c
+5
-0
5 additions, 0 deletions
libavfilter/audio.c
libavfilter/avfilter.h
+6
-1
6 additions, 1 deletion
libavfilter/avfilter.h
libavfilter/version.h
+2
-2
2 additions, 2 deletions
libavfilter/version.h
with
17 additions
and
3 deletions
doc/APIchanges
+
4
−
0
View file @
34de47aa
...
...
@@ -15,6 +15,10 @@ libavutil: 2012-10-22
API changes, most recent first:
2012-12-20 - xxxxxxx - lavfi 3.28.100 - avfilter.h
Add AVFilterLink.channels, avfilter_link_get_channels()
and avfilter_ref_get_channels().
2012-12-15 - 2ada584d - lavc 54.80.100 - avcodec.h
Add pkt_size field to AVFrame.
...
...
This diff is collapsed.
Click to expand it.
libavfilter/audio.c
+
5
−
0
View file @
34de47aa
...
...
@@ -27,6 +27,11 @@
#include
"avfilter.h"
#include
"internal.h"
int
avfilter_ref_get_channels
(
AVFilterBufferRef
*
ref
)
{
return
ref
->
audio
?
ref
->
audio
->
channels
:
0
;
}
AVFilterBufferRef
*
ff_null_get_audio_buffer
(
AVFilterLink
*
link
,
int
perms
,
int
nb_samples
)
{
...
...
This diff is collapsed.
Click to expand it.
libavfilter/avfilter.h
+
6
−
1
View file @
34de47aa
...
...
@@ -128,7 +128,7 @@ typedef struct AVFilterBufferRefAudioProps {
uint64_t
channel_layout
;
///< channel layout of audio buffer
int
nb_samples
;
///< number of audio samples per channel
int
sample_rate
;
///< audio buffer sample rate
int
channels
;
///< number of channels
int
channels
;
///< number of channels
(do not access directly)
}
AVFilterBufferRefAudioProps
;
/**
...
...
@@ -233,6 +233,11 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref);
*/
void
avfilter_unref_bufferp
(
AVFilterBufferRef
**
ref
);
/**
* Get the number of channels of a buffer reference.
*/
int
avfilter_ref_get_channels
(
AVFilterBufferRef
*
ref
);
#if FF_API_AVFILTERPAD_PUBLIC
/**
* A filter pad used for either input or output.
...
...
This diff is collapsed.
Click to expand it.
libavfilter/version.h
+
2
−
2
View file @
34de47aa
...
...
@@ -29,8 +29,8 @@
#include
"libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR 2
8
#define LIBAVFILTER_VERSION_MICRO 10
2
#define LIBAVFILTER_VERSION_MINOR 2
9
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment