Browse Source

swresample: swr_close()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
96cb4c8718
4 changed files with 18 additions and 1 deletions
  1. +3
    -0
      doc/APIchanges
  2. +4
    -0
      libswresample/swresample.c
  3. +10
    -0
      libswresample/swresample.h
  4. +1
    -1
      libswresample/version.h

+ 3
- 0
doc/APIchanges View File

@@ -15,6 +15,9 @@ libavutil: 2012-10-22

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
Add AV_PIX_FMT_VDA for new-style VDA acceleration.



+ 4
- 0
libswresample/swresample.c View File

@@ -251,6 +251,10 @@ av_cold void swr_free(SwrContext **ss){
av_freep(ss);
}

av_cold void swr_close(SwrContext *s){
clear_context(s);
}

av_cold int swr_init(struct SwrContext *s){
int ret;



+ 10
- 0
libswresample/swresample.h View File

@@ -202,6 +202,16 @@ struct SwrContext *swr_alloc_set_opts(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.
*


+ 1
- 1
libswresample/version.h View File

@@ -29,7 +29,7 @@
#include "libavutil/avutil.h"

#define LIBSWRESAMPLE_VERSION_MAJOR 0
#define LIBSWRESAMPLE_VERSION_MINOR 18
#define LIBSWRESAMPLE_VERSION_MINOR 19
#define LIBSWRESAMPLE_VERSION_MICRO 100

#define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \


Loading…
Cancel
Save