summaryrefslogtreecommitdiff
path: root/libavfilter/video.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-05-15 15:56:04 +0200
committerDiego Biurrun <diego@biurrun.de>2012-05-15 19:10:46 +0200
commit91791ac2edc46ff5f2ab09bbcdc58c3053f23075 (patch)
tree36d6eafe56cbda57c9a63bf996f603ec4fcd5f27 /libavfilter/video.c
parent4982e1ddfaff5287e05b95957f3c56901d60b56a (diff)
avfilter: Move ff_get_ref_perms_string() to where it is used.
This fixes a compilation failure with -DDEBUG.
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c
index 26805feba0..211cec9055 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -21,6 +21,20 @@
#include "avfilter.h"
#include "internal.h"
+#ifdef DEBUG
+static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
+{
+ snprintf(buf, buf_size, "%s%s%s%s%s%s",
+ perms & AV_PERM_READ ? "r" : "",
+ perms & AV_PERM_WRITE ? "w" : "",
+ perms & AV_PERM_PRESERVE ? "p" : "",
+ perms & AV_PERM_REUSE ? "u" : "",
+ perms & AV_PERM_REUSE2 ? "U" : "",
+ perms & AV_PERM_NEG_LINESIZES ? "n" : "");
+ return buf;
+}
+#endif
+
static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end)
{
av_unused char buf[16];