avcodec/jpeg2000dec: Skip init for component in CPRL if nothing is to be done
[ffmpeg.git] / libavutil / xtea.c
index 1750cbc..0d58cba 100644 (file)
 #include "avutil.h"
 #include "common.h"
 #include "intreadwrite.h"
+#include "mem.h"
 #include "xtea.h"
 
+AVXTEA *av_xtea_alloc(void)
+{
+    return av_mallocz(sizeof(struct AVXTEA));
+}
+
 void av_xtea_init(AVXTEA *ctx, const uint8_t key[16])
 {
     int i;