Browse Source

avcodec/avdct: Add avcodec_dct_get_class()

This should have been in the initial commit of AVDCT

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
2f717be22a
2 changed files with 7 additions and 0 deletions
  1. +5
    -0
      libavcodec/avdct.c
  2. +2
    -0
      libavcodec/avdct.h

+ 5
- 0
libavcodec/avdct.c View File

@@ -70,6 +70,11 @@ static const AVClass avdct_class = {
.version = LIBAVUTIL_VERSION_INT,
};

const AVClass *avcodec_dct_get_class(void)
{
return &avdct_class;
}

AVDCT *avcodec_dct_alloc(void)
{
AVDCT *dsp = av_mallocz(sizeof(AVDCT));


+ 2
- 0
libavcodec/avdct.h View File

@@ -73,4 +73,6 @@ typedef struct AVDCT {
AVDCT *avcodec_dct_alloc(void);
int avcodec_dct_init(AVDCT *);

const AVClass *avcodec_dct_get_class(void);

#endif /* AVCODEC_AVDCT_H */

Loading…
Cancel
Save