summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-12 18:58:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-28 14:33:41 +0100
commitac090fa68c6233076508705d80090edb9eea4eed (patch)
tree6ded2c68e69d4e63f0637b890fc7d0db6e822cef /libavutil
parentc73fcc8de3e314304819eed89216727a20e5e8a0 (diff)
lavu: keep context size variables
They are essential to be able to use the utils without av_malloc() That is for example use with malloc(), memalign(), some other private allocation function, on the stack or others. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/aes.c2
-rw-r--r--libavutil/aes.h4
-rw-r--r--libavutil/md5.c2
-rw-r--r--libavutil/md5.h4
-rw-r--r--libavutil/sha.c2
-rw-r--r--libavutil/sha.h4
-rw-r--r--libavutil/tree.c2
-rw-r--r--libavutil/tree.h4
8 files changed, 4 insertions, 20 deletions
diff --git a/libavutil/aes.c b/libavutil/aes.c
index 555cbb82cf..a3eb295e24 100644
--- a/libavutil/aes.c
+++ b/libavutil/aes.c
@@ -39,9 +39,7 @@ typedef struct AVAES {
int rounds;
} AVAES;
-#if FF_API_CONTEXT_SIZE
const int av_aes_size= sizeof(AVAES);
-#endif
struct AVAES *av_aes_alloc(void)
{
diff --git a/libavutil/aes.h b/libavutil/aes.h
index 9c1a54e036..09efbda107 100644
--- a/libavutil/aes.h
+++ b/libavutil/aes.h
@@ -32,9 +32,7 @@
* @{
*/
-#if FF_API_CONTEXT_SIZE
-extern attribute_deprecated const int av_aes_size;
-#endif
+extern const int av_aes_size;
struct AVAES;
diff --git a/libavutil/md5.c b/libavutil/md5.c
index ce8400fdac..d0d0d27f07 100644
--- a/libavutil/md5.c
+++ b/libavutil/md5.c
@@ -42,9 +42,7 @@ typedef struct AVMD5{
uint32_t ABCD[4];
} AVMD5;
-#if FF_API_CONTEXT_SIZE
const int av_md5_size = sizeof(AVMD5);
-#endif
struct AVMD5 *av_md5_alloc(void)
{
diff --git a/libavutil/md5.h b/libavutil/md5.h
index 69199cc53c..1d7be9ff53 100644
--- a/libavutil/md5.h
+++ b/libavutil/md5.h
@@ -32,9 +32,7 @@
* @{
*/
-#if FF_API_CONTEXT_SIZE
-extern attribute_deprecated const int av_md5_size;
-#endif
+extern const int av_md5_size;
struct AVMD5;
diff --git a/libavutil/sha.c b/libavutil/sha.c
index e3a956a4b5..8d5ca458f9 100644
--- a/libavutil/sha.c
+++ b/libavutil/sha.c
@@ -38,9 +38,7 @@ typedef struct AVSHA {
void (*transform)(uint32_t *state, const uint8_t buffer[64]);
} AVSHA;
-#if FF_API_CONTEXT_SIZE
const int av_sha_size = sizeof(AVSHA);
-#endif
struct AVSHA *av_sha_alloc(void)
{
diff --git a/libavutil/sha.h b/libavutil/sha.h
index 744c66f5d9..bf4377e51b 100644
--- a/libavutil/sha.h
+++ b/libavutil/sha.h
@@ -32,9 +32,7 @@
* @{
*/
-#if FF_API_CONTEXT_SIZE
-extern attribute_deprecated const int av_sha_size;
-#endif
+extern const int av_sha_size;
struct AVSHA;
diff --git a/libavutil/tree.c b/libavutil/tree.c
index cba6fe8c78..5803c2a881 100644
--- a/libavutil/tree.c
+++ b/libavutil/tree.c
@@ -28,9 +28,7 @@ typedef struct AVTreeNode {
int state;
} AVTreeNode;
-#if FF_API_CONTEXT_SIZE
const int av_tree_node_size = sizeof(AVTreeNode);
-#endif
struct AVTreeNode *av_tree_node_alloc(void)
{
diff --git a/libavutil/tree.h b/libavutil/tree.h
index 71874967f9..13fb91be50 100644
--- a/libavutil/tree.h
+++ b/libavutil/tree.h
@@ -43,9 +43,7 @@
struct AVTreeNode;
-#if FF_API_CONTEXT_SIZE
-extern attribute_deprecated const int av_tree_node_size;
-#endif
+extern const int av_tree_node_size;
/**
* Allocate an AVTreeNode.