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

Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all

Unified · Split

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) {

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