Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
a9a1bc56
Commit
a9a1bc56
authored
Aug 31, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: get rid of void casts in the option table
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b1034505
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
39 deletions
+39
-39
ffplay.c
ffplay.c
+39
-39
No files found.
ffplay.c
View file @
a9a1bc56
...
@@ -2977,47 +2977,47 @@ static int dummy;
...
@@ -2977,47 +2977,47 @@ static int dummy;
static
const
OptionDef
options
[]
=
{
static
const
OptionDef
options
[]
=
{
#include "cmdutils_common_opts.h"
#include "cmdutils_common_opts.h"
{
"x"
,
HAS_ARG
,
{
(
void
*
)
opt_width
},
"force displayed width"
,
"width"
},
{
"x"
,
HAS_ARG
,
{
.
func_arg
=
opt_width
},
"force displayed width"
,
"width"
},
{
"y"
,
HAS_ARG
,
{
(
void
*
)
opt_height
},
"force displayed height"
,
"height"
},
{
"y"
,
HAS_ARG
,
{
.
func_arg
=
opt_height
},
"force displayed height"
,
"height"
},
{
"s"
,
HAS_ARG
|
OPT_VIDEO
,
{
(
void
*
)
opt_frame_size
},
"set frame size (WxH or abbreviation)"
,
"size"
},
{
"s"
,
HAS_ARG
|
OPT_VIDEO
,
{
.
func_arg
=
opt_frame_size
},
"set frame size (WxH or abbreviation)"
,
"size"
},
{
"fs"
,
OPT_BOOL
,
{
(
void
*
)
&
is_full_screen
},
"force full screen"
},
{
"fs"
,
OPT_BOOL
,
{
&
is_full_screen
},
"force full screen"
},
{
"an"
,
OPT_BOOL
,
{
(
void
*
)
&
audio_disable
},
"disable audio"
},
{
"an"
,
OPT_BOOL
,
{
&
audio_disable
},
"disable audio"
},
{
"vn"
,
OPT_BOOL
,
{
(
void
*
)
&
video_disable
},
"disable video"
},
{
"vn"
,
OPT_BOOL
,
{
&
video_disable
},
"disable video"
},
{
"ast"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
wanted_stream
[
AVMEDIA_TYPE_AUDIO
]
},
"select desired audio stream"
,
"stream_number"
},
{
"ast"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
wanted_stream
[
AVMEDIA_TYPE_AUDIO
]
},
"select desired audio stream"
,
"stream_number"
},
{
"vst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
wanted_stream
[
AVMEDIA_TYPE_VIDEO
]
},
"select desired video stream"
,
"stream_number"
},
{
"vst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
wanted_stream
[
AVMEDIA_TYPE_VIDEO
]
},
"select desired video stream"
,
"stream_number"
},
{
"sst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
wanted_stream
[
AVMEDIA_TYPE_SUBTITLE
]
},
"select desired subtitle stream"
,
"stream_number"
},
{
"sst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
wanted_stream
[
AVMEDIA_TYPE_SUBTITLE
]
},
"select desired subtitle stream"
,
"stream_number"
},
{
"ss"
,
HAS_ARG
,
{
(
void
*
)
&
opt_seek
},
"seek to a given position in seconds"
,
"pos"
},
{
"ss"
,
HAS_ARG
,
{
.
func_arg
=
opt_seek
},
"seek to a given position in seconds"
,
"pos"
},
{
"t"
,
HAS_ARG
,
{
(
void
*
)
&
opt_duration
},
"play
\"
duration
\"
seconds of audio/video"
,
"duration"
},
{
"t"
,
HAS_ARG
,
{
.
func_arg
=
opt_duration
},
"play
\"
duration
\"
seconds of audio/video"
,
"duration"
},
{
"bytes"
,
OPT_INT
|
HAS_ARG
,
{
(
void
*
)
&
seek_by_bytes
},
"seek by bytes 0=off 1=on -1=auto"
,
"val"
},
{
"bytes"
,
OPT_INT
|
HAS_ARG
,
{
&
seek_by_bytes
},
"seek by bytes 0=off 1=on -1=auto"
,
"val"
},
{
"nodisp"
,
OPT_BOOL
,
{
(
void
*
)
&
display_disable
},
"disable graphical display"
},
{
"nodisp"
,
OPT_BOOL
,
{
&
display_disable
},
"disable graphical display"
},
{
"f"
,
HAS_ARG
,
{
(
void
*
)
opt_format
},
"force format"
,
"fmt"
},
{
"f"
,
HAS_ARG
,
{
.
func_arg
=
opt_format
},
"force format"
,
"fmt"
},
{
"pix_fmt"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_VIDEO
,
{
(
void
*
)
opt_frame_pix_fmt
},
"set pixel format"
,
"format"
},
{
"pix_fmt"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_VIDEO
,
{
.
func_arg
=
opt_frame_pix_fmt
},
"set pixel format"
,
"format"
},
{
"stats"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
show_status
},
"show status"
,
""
},
{
"stats"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
show_status
},
"show status"
,
""
},
{
"bug"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
workaround_bugs
},
"workaround bugs"
,
""
},
{
"bug"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
workaround_bugs
},
"workaround bugs"
,
""
},
{
"fast"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
fast
},
"non spec compliant optimizations"
,
""
},
{
"fast"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
fast
},
"non spec compliant optimizations"
,
""
},
{
"genpts"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
genpts
},
"generate pts"
,
""
},
{
"genpts"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
genpts
},
"generate pts"
,
""
},
{
"drp"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
decoder_reorder_pts
},
"let decoder reorder pts 0=off 1=on -1=auto"
,
""
},
{
"drp"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
decoder_reorder_pts
},
"let decoder reorder pts 0=off 1=on -1=auto"
,
""
},
{
"lowres"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
lowres
},
""
,
""
},
{
"lowres"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
lowres
},
""
,
""
},
{
"skiploop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
skip_loop_filter
},
""
,
""
},
{
"skiploop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
skip_loop_filter
},
""
,
""
},
{
"skipframe"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
skip_frame
},
""
,
""
},
{
"skipframe"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
skip_frame
},
""
,
""
},
{
"skipidct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
skip_idct
},
""
,
""
},
{
"skipidct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
skip_idct
},
""
,
""
},
{
"idct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
idct
},
"set idct algo"
,
"algo"
},
{
"idct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
idct
},
"set idct algo"
,
"algo"
},
{
"ec"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
error_concealment
},
"set error concealment options"
,
"bit_mask"
},
{
"ec"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
error_concealment
},
"set error concealment options"
,
"bit_mask"
},
{
"sync"
,
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
opt_sync
},
"set audio-video sync. type (type=audio/video/ext)"
,
"type"
},
{
"sync"
,
HAS_ARG
|
OPT_EXPERT
,
{
.
func_arg
=
opt_sync
},
"set audio-video sync. type (type=audio/video/ext)"
,
"type"
},
{
"autoexit"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
autoexit
},
"exit at the end"
,
""
},
{
"autoexit"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
autoexit
},
"exit at the end"
,
""
},
{
"exitonkeydown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
exit_on_keydown
},
"exit on key down"
,
""
},
{
"exitonkeydown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
exit_on_keydown
},
"exit on key down"
,
""
},
{
"exitonmousedown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
exit_on_mousedown
},
"exit on mouse down"
,
""
},
{
"exitonmousedown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
exit_on_mousedown
},
"exit on mouse down"
,
""
},
{
"loop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
loop
},
"set number of times the playback shall be looped"
,
"loop count"
},
{
"loop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
loop
},
"set number of times the playback shall be looped"
,
"loop count"
},
{
"framedrop"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
framedrop
},
"drop frames when cpu is too slow"
,
""
},
{
"framedrop"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
framedrop
},
"drop frames when cpu is too slow"
,
""
},
{
"infbuf"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
infinite_buffer
},
"don't limit the input buffer size (useful with realtime streams)"
,
""
},
{
"infbuf"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
infinite_buffer
},
"don't limit the input buffer size (useful with realtime streams)"
,
""
},
{
"window_title"
,
OPT_STRING
|
HAS_ARG
,
{
(
void
*
)
&
window_title
},
"set window title"
,
"window title"
},
{
"window_title"
,
OPT_STRING
|
HAS_ARG
,
{
&
window_title
},
"set window title"
,
"window title"
},
#if CONFIG_AVFILTER
#if CONFIG_AVFILTER
{
"vf"
,
OPT_STRING
|
HAS_ARG
,
{
(
void
*
)
&
vfilters
},
"video filters"
,
"filter list"
},
{
"vf"
,
OPT_STRING
|
HAS_ARG
,
{
&
vfilters
},
"video filters"
,
"filter list"
},
#endif
#endif
{
"rdftspeed"
,
OPT_INT
|
HAS_ARG
|
OPT_AUDIO
|
OPT_EXPERT
,
{
(
void
*
)
&
rdftspeed
},
"rdft speed"
,
"msecs"
},
{
"rdftspeed"
,
OPT_INT
|
HAS_ARG
|
OPT_AUDIO
|
OPT_EXPERT
,
{
&
rdftspeed
},
"rdft speed"
,
"msecs"
},
{
"showmode"
,
HAS_ARG
,
{
(
void
*
)
opt_show_mode
},
"select show mode (0 = video, 1 = waves, 2 = RDFT)"
,
"mode"
},
{
"showmode"
,
HAS_ARG
,
{
.
func_arg
=
opt_show_mode
},
"select show mode (0 = video, 1 = waves, 2 = RDFT)"
,
"mode"
},
{
"default"
,
HAS_ARG
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_EXPERT
,
{
(
void
*
)
opt_default
},
"generic catch all option"
,
""
},
{
"default"
,
HAS_ARG
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_EXPERT
,
{
.
func_arg
=
opt_default
},
"generic catch all option"
,
""
},
{
"i"
,
OPT_BOOL
,
{
(
void
*
)
&
dummy
},
"read specified file"
,
"input_file"
},
{
"i"
,
OPT_BOOL
,
{
&
dummy
},
"read specified file"
,
"input_file"
},
{
"codec"
,
HAS_ARG
,
{
.
func_arg
=
opt_codec
},
"force decoder"
,
"decoder"
},
{
"codec"
,
HAS_ARG
,
{
.
func_arg
=
opt_codec
},
"force decoder"
,
"decoder"
},
{
NULL
,
},
{
NULL
,
},
};
};
...
...
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