Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
96cb4c87
Commit
96cb4c87
authored
May 15, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swresample: swr_close()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2c7d3ecf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
APIchanges
doc/APIchanges
+3
-0
swresample.c
libswresample/swresample.c
+4
-0
swresample.h
libswresample/swresample.h
+10
-0
version.h
libswresample/version.h
+1
-1
No files found.
doc/APIchanges
View file @
96cb4c87
...
@@ -15,6 +15,9 @@ libavutil: 2012-10-22
...
@@ -15,6 +15,9 @@ libavutil: 2012-10-22
API changes, most recent first:
API changes, most recent first:
2014-05-15 - xxxxxxx - lswr 0.19.100 - swresample.h
Add swr_close()
2014-xx-xx - xxxxxxx - lavu 53.14.0 - pixfmt.h
2014-xx-xx - xxxxxxx - lavu 53.14.0 - pixfmt.h
Add AV_PIX_FMT_VDA for new-style VDA acceleration.
Add AV_PIX_FMT_VDA for new-style VDA acceleration.
...
...
libswresample/swresample.c
View file @
96cb4c87
...
@@ -251,6 +251,10 @@ av_cold void swr_free(SwrContext **ss){
...
@@ -251,6 +251,10 @@ av_cold void swr_free(SwrContext **ss){
av_freep
(
ss
);
av_freep
(
ss
);
}
}
av_cold
void
swr_close
(
SwrContext
*
s
){
clear_context
(
s
);
}
av_cold
int
swr_init
(
struct
SwrContext
*
s
){
av_cold
int
swr_init
(
struct
SwrContext
*
s
){
int
ret
;
int
ret
;
...
...
libswresample/swresample.h
View file @
96cb4c87
...
@@ -202,6 +202,16 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
...
@@ -202,6 +202,16 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
*/
*/
void
swr_free
(
struct
SwrContext
**
s
);
void
swr_free
(
struct
SwrContext
**
s
);
/**
* Closes the context so that swr_is_initialized() returns 0.
*
* the context can be brougt back to life by running swr_init(),
* swr_init() can also be used without swr_close().
* This function is mainly provided for simplifying the usecase
* where one tries to support libavresample and libswresample
*/
void
swr_close
(
struct
SwrContext
*
s
);
/**
/**
* Convert audio.
* Convert audio.
*
*
...
...
libswresample/version.h
View file @
96cb4c87
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "libavutil/avutil.h"
#include "libavutil/avutil.h"
#define LIBSWRESAMPLE_VERSION_MAJOR 0
#define LIBSWRESAMPLE_VERSION_MAJOR 0
#define LIBSWRESAMPLE_VERSION_MINOR 1
8
#define LIBSWRESAMPLE_VERSION_MINOR 1
9
#define LIBSWRESAMPLE_VERSION_MICRO 100
#define LIBSWRESAMPLE_VERSION_MICRO 100
#define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \
#define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_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