Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
91791ac2
Commit
91791ac2
authored
May 15, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: Move ff_get_ref_perms_string() to where it is used.
This fixes a compilation failure with -DDEBUG.
parent
4982e1dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
avfilter.c
libavfilter/avfilter.c
+0
-14
video.c
libavfilter/video.c
+14
-0
No files found.
libavfilter/avfilter.c
View file @
91791ac2
...
...
@@ -179,20 +179,6 @@ int avfilter_config_links(AVFilterContext *filter)
return
0
;
}
#ifdef DEBUG
static
char
*
ff_get_ref_perms_string
(
char
*
buf
,
size_t
buf_size
,
int
perms
)
{
snprintf
(
buf
,
buf_size
,
"%s%s%s%s%s%s"
,
perms
&
AV_PERM_READ
?
"r"
:
""
,
perms
&
AV_PERM_WRITE
?
"w"
:
""
,
perms
&
AV_PERM_PRESERVE
?
"p"
:
""
,
perms
&
AV_PERM_REUSE
?
"u"
:
""
,
perms
&
AV_PERM_REUSE2
?
"U"
:
""
,
perms
&
AV_PERM_NEG_LINESIZES
?
"n"
:
""
);
return
buf
;
}
#endif
void
ff_dlog_link
(
void
*
ctx
,
AVFilterLink
*
link
,
int
end
)
{
if
(
link
->
type
==
AVMEDIA_TYPE_VIDEO
)
{
...
...
libavfilter/video.c
View file @
91791ac2
...
...
@@ -21,6 +21,20 @@
#include "avfilter.h"
#include "internal.h"
#ifdef DEBUG
static
char
*
ff_get_ref_perms_string
(
char
*
buf
,
size_t
buf_size
,
int
perms
)
{
snprintf
(
buf
,
buf_size
,
"%s%s%s%s%s%s"
,
perms
&
AV_PERM_READ
?
"r"
:
""
,
perms
&
AV_PERM_WRITE
?
"w"
:
""
,
perms
&
AV_PERM_PRESERVE
?
"p"
:
""
,
perms
&
AV_PERM_REUSE
?
"u"
:
""
,
perms
&
AV_PERM_REUSE2
?
"U"
:
""
,
perms
&
AV_PERM_NEG_LINESIZES
?
"n"
:
""
);
return
buf
;
}
#endif
static
void
ff_dlog_ref
(
void
*
ctx
,
AVFilterBufferRef
*
ref
,
int
end
)
{
av_unused
char
buf
[
16
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment