This fixes a compilation failure with -DDEBUG.
Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all
Unified · Split
| @@ -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 | ||
| 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 | void ff_dlog_link(void *ctx, AVFilterLink *link, int end) | 182 | void 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) { |