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
7e86c27b
Commit
7e86c27b
authored
Apr 25, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavr: add a function for checking whether AVAudioResampleContext is open
parent
d922c5a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
APIchanges
doc/APIchanges
+3
-0
avresample.h
libavresample/avresample.h
+8
-0
utils.c
libavresample/utils.c
+5
-0
version.h
libavresample/version.h
+1
-1
No files found.
doc/APIchanges
View file @
7e86c27b
...
...
@@ -13,6 +13,9 @@ libavutil: 2013-12-xx
API changes, most recent first:
2014-02-xx - xxxxxxx - lavr 1.2.0 - avresample.h
Add avresample_is_open() for checking whether a resample context is open.
2014-xx-xx - xxxxxxx - lavu 53.04.0 - opt.h
Add AV_OPT_FLAG_EXPORT and AV_OPT_FLAG_READONLY to mark options meant (only)
for reading.
...
...
libavresample/avresample.h
View file @
7e86c27b
...
...
@@ -171,6 +171,14 @@ AVAudioResampleContext *avresample_alloc_context(void);
*/
int
avresample_open
(
AVAudioResampleContext
*
avr
);
/**
* Check whether an AVAudioResampleContext is open or closed.
*
* @param avr AVAudioResampleContext to check
* @return 1 if avr is open, 0 if avr is closed.
*/
int
avresample_is_open
(
AVAudioResampleContext
*
avr
);
/**
* Close AVAudioResampleContext.
*
...
...
libavresample/utils.c
View file @
7e86c27b
...
...
@@ -254,6 +254,11 @@ error:
return
ret
;
}
int
avresample_is_open
(
AVAudioResampleContext
*
avr
)
{
return
!!
avr
->
out_fifo
;
}
void
avresample_close
(
AVAudioResampleContext
*
avr
)
{
ff_audio_data_free
(
&
avr
->
in_buffer
);
...
...
libavresample/version.h
View file @
7e86c27b
...
...
@@ -28,7 +28,7 @@
#include "libavutil/version.h"
#define LIBAVRESAMPLE_VERSION_MAJOR 1
#define LIBAVRESAMPLE_VERSION_MINOR
1
#define LIBAVRESAMPLE_VERSION_MINOR
2
#define LIBAVRESAMPLE_VERSION_MICRO 0
#define LIBAVRESAMPLE_VERSION_INT AV_VERSION_INT(LIBAVRESAMPLE_VERSION_MAJOR, \
...
...
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