[FFmpeg-cvslog] avcodec/avdct: Add avcodec_dct_get_class()

Michael Niedermayer git at videolan.org
Mon Jul 28 05:22:54 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul 28 05:14:39 2014 +0200| [2f717be22a933fc8f53b2cb2540ffb3358896467] | committer: Michael Niedermayer

avcodec/avdct: Add avcodec_dct_get_class()

This should have been in the initial commit of AVDCT

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f717be22a933fc8f53b2cb2540ffb3358896467
---

 libavcodec/avdct.c |    5 +++++
 libavcodec/avdct.h |    2 ++
 2 files changed, 7 insertions(+)

diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c
index 720e772..58f4974 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 4d691e0..4c9d00f 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 */



More information about the ffmpeg-cvslog mailing list