]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/options.c
mips: add assembler flags for mips32r2 ISA and mhard-float
[ffmpeg] / libavcodec / options.c
index c8f770a7c8e2876edb0664850de36810f7533d2b..e64bc9edf8b3bc7af71bbb8e7423ed302821cf64 100644 (file)
 #include "avcodec.h"
 #include "internal.h"
 #include "libavutil/avassert.h"
+#include "libavutil/mem.h"
 #include "libavutil/opt.h"
 #include <float.h>              /* FLT_MIN, FLT_MAX */
+#include <string.h>
 
 #include "options_table.h"
 
@@ -65,8 +67,9 @@ static const AVClass *codec_child_class_next(const AVClass *prev)
     return NULL;
 }
 
-static AVClassCategory get_category(AVCodecContext *avctx)
+static AVClassCategory get_category(void *ptr)
 {
+    AVCodecContext* avctx = ptr;
     if(avctx->codec && avctx->codec->decode) return AV_CLASS_CATEGORY_DECODER;
     else                                     return AV_CLASS_CATEGORY_ENCODER;
 }
@@ -80,7 +83,7 @@ static const AVClass av_codec_context_class = {
     .child_next              = codec_child_next,
     .child_class_next        = codec_child_class_next,
     .category                = AV_CLASS_CATEGORY_ENCODER,
-    .get_category            = (void*)get_category,
+    .get_category            = get_category,
 };
 
 #if FF_API_ALLOC_CONTEXT