Browse Source

swr: add swr_get_class()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
22057e8ecb
2 changed files with 13 additions and 0 deletions
  1. +5
    -0
      libswresample/swresample.c
  2. +8
    -0
      libswresample/swresample.h

+ 5
- 0
libswresample/swresample.c View File

@@ -97,6 +97,11 @@ int swr_set_channel_mapping(struct SwrContext *s, const int *channel_map){
return 0;
}

const AVClass *swr_get_class(void)
{
return &av_class;
}

struct SwrContext *swr_alloc(void){
SwrContext *s= av_mallocz(sizeof(SwrContext));
if(s){


+ 8
- 0
libswresample/swresample.h View File

@@ -54,6 +54,14 @@ enum SwrDitherType {

typedef struct SwrContext SwrContext;

/**
* Get the AVClass for swrContext. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const AVClass *swr_get_class(void);

/**
* Allocate SwrContext.
*


Loading…
Cancel
Save