diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-28 05:14:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-30 22:39:08 +0200 |
commit | c61ac696e56acb317ff4165dd0afaa12e9f8afe3 (patch) | |
tree | 7605f5017bfe192d841588456a091d75f387e007 | |
parent | 6a250c858ebbb9d5111c5b14d8d46d41bd08e218 (diff) | |
download | ffmpeg-c61ac696e56acb317ff4165dd0afaa12e9f8afe3.tar.gz |
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>
(cherry picked from commit 2f717be22a933fc8f53b2cb2540ffb3358896467)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/avdct.c | 5 | ||||
-rw-r--r-- | libavcodec/avdct.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c index 720e7720de..58f4974b49 100644 --- a/libavcodec/avdct.c +++ b/libavcodec/avdct.c @@ -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)); diff --git a/libavcodec/avdct.h b/libavcodec/avdct.h index 4d691e013d..4c9d00f904 100644 --- a/libavcodec/avdct.h +++ b/libavcodec/avdct.h @@ -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 */ |