This fixes a compilation failure with -DDEBUG.
Unified · Split
| @@ -179,20 +179,6 @@ int avfilter_config_links(AVFilterContext *filter) · 178 unmodified lines | ||
| 179 | 179 | return 0; |
| 180 | 180 | } |
| 181 | 181 | |
| 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 | − | |
| 196 | 182 | void ff_dlog_link(void *ctx, AVFilterLink *link, int end) |
| 197 | 183 | { |
| 198 | 184 | if (link->type == AVMEDIA_TYPE_VIDEO) { |
| @@ -21,6 +21,20 @@ · 20 unmodified lines | ||
| 21 | 21 | #include "avfilter.h" |
| 22 | 22 | #include "internal.h" |
| 23 | 23 | |
| 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 | + | |
| 24 | 38 | static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end) |
| 25 | 39 | { |
| 26 | 40 | av_unused char buf[16]; |