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
179 return 0;179 return 0;
180}180}
181 181
182#ifdef DEBUG
183static 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
196void ff_dlog_link(void *ctx, AVFilterLink *link, int end)182void ff_dlog_link(void *ctx, AVFilterLink *link, int end)
197{183{
198 if (link->type == AVMEDIA_TYPE_VIDEO) {184 if (link->type == AVMEDIA_TYPE_VIDEO) {
libavfilter/video.c+14−0
@@ -21,6 +21,20 @@ · 20 unmodified lines
21#include "avfilter.h"21#include "avfilter.h"
22#include "internal.h"22#include "internal.h"
23 23
24#ifdef DEBUG
25static 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
24static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end)38static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end)
25{39{
26 av_unused char buf[16];40 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