History

avfilter: Move ff_get_ref_perms_string() to where it is used.

This fixes a compilation failure with -DDEBUG.

Diego Biurrun committed 14 years ago

Commit 91791ac1 parent 4982e1d2 files · +14 −14Browse files

Unified · Split

2 files
  1. libavfilter/avfilter.c +0 −14
  2. libavfilter/video.c +14 −0
libavfilter/avfilter.c+0−14
@@ -179,20 +179,6 @@ int avfilter_config_links(AVFilterContext *filter) · 178 unmodified lines
179179 return 0;
180180 }
181181
182−#ifdef DEBUG
183−static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
184−{
185− snprintf(buf, buf_size, "%s%s%s%s%s%s",
186− perms & AV_PERM_READ ? "r" : "",
187− perms & AV_PERM_WRITE ? "w" : "",
188− perms & AV_PERM_PRESERVE ? "p" : "",
189− perms & AV_PERM_REUSE ? "u" : "",
190− perms & AV_PERM_REUSE2 ? "U" : "",
191− perms & AV_PERM_NEG_LINESIZES ? "n" : "");
192− return buf;
193−}
194−#endif
195−
196182 void ff_dlog_link(void *ctx, AVFilterLink *link, int end)
197183 {
198184 if (link->type == AVMEDIA_TYPE_VIDEO) {
libavfilter/video.c+14−0
@@ -21,6 +21,20 @@ · 20 unmodified lines
2121 #include "avfilter.h"
2222 #include "internal.h"
2323
24+#ifdef DEBUG
25+static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
26+{
27+ snprintf(buf, buf_size, "%s%s%s%s%s%s",
28+ perms & AV_PERM_READ ? "r" : "",
29+ perms & AV_PERM_WRITE ? "w" : "",
30+ perms & AV_PERM_PRESERVE ? "p" : "",
31+ perms & AV_PERM_REUSE ? "u" : "",
32+ perms & AV_PERM_REUSE2 ? "U" : "",
33+ perms & AV_PERM_NEG_LINESIZES ? "n" : "");
34+ return buf;
35+}
36+#endif
37+
2438 static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end)
2539 {
2640 av_unused char buf[16];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t