avcodec/avdct: Add avcodec_dct_get_class()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 28 Jul 2014 03:14:39 +0000 (05:14 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 30 Jul 2014 20:39:08 +0000 (22:39 +0200)
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>
libavcodec/avdct.c
libavcodec/avdct.h

index 720e772..58f4974 100644 (file)
@@ -70,6 +70,11 @@ static const AVClass avdct_class = {
     .version                 = LIBAVUTIL_VERSION_INT,
 };
 
     .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));
 AVDCT *avcodec_dct_alloc(void)
 {
     AVDCT *dsp = av_mallocz(sizeof(AVDCT));
index 4d691e0..4c9d00f 100644 (file)
@@ -73,4 +73,6 @@ typedef struct AVDCT {
 AVDCT *avcodec_dct_alloc(void);
 int avcodec_dct_init(AVDCT *);
 
 AVDCT *avcodec_dct_alloc(void);
 int avcodec_dct_init(AVDCT *);
 
+const AVClass *avcodec_dct_get_class(void);
+
 #endif /* AVCODEC_AVDCT_H */
 #endif /* AVCODEC_AVDCT_H */