Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
00dc2859
Commit
00dc2859
authored
10 years ago
by
Lukasz Marek
Browse files
Options
Downloads
Patches
Plain Diff
cmdutils: use macros for device test
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
b3311f3c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmdutils.c
+1
-6
1 addition, 6 deletions
cmdutils.c
with
1 addition
and
6 deletions
cmdutils.c
+
1
−
6
View file @
00dc2859
...
@@ -1213,12 +1213,7 @@ static int is_device(const AVClass *avclass)
...
@@ -1213,12 +1213,7 @@ static int is_device(const AVClass *avclass)
{
{
if
(
!
avclass
)
if
(
!
avclass
)
return
0
;
return
0
;
return
avclass
->
category
==
AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
||
return
AV_IS_INPUT_DEVICE
(
avclass
->
category
)
||
AV_IS_OUTPUT_DEVICE
(
avclass
->
category
);
avclass
->
category
==
AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
||
avclass
->
category
==
AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
||
avclass
->
category
==
AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT
||
avclass
->
category
==
AV_CLASS_CATEGORY_DEVICE_OUTPUT
||
avclass
->
category
==
AV_CLASS_CATEGORY_DEVICE_INPUT
;
}
}
static
int
show_formats_devices
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
,
int
device_only
)
static
int
show_formats_devices
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
,
int
device_only
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment