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
d0c6ed7d
Commit
d0c6ed7d
authored
Feb 23, 2013
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: add option to disable subtitling
Fixes ticket #2201. Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
daece4c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ffplay.c
ffplay.c
+3
-1
No files found.
ffplay.c
View file @
d0c6ed7d
...
...
@@ -277,6 +277,7 @@ static int screen_width = 0;
static
int
screen_height
=
0
;
static
int
audio_disable
;
static
int
video_disable
;
static
int
subtitle_disable
;
static
int
wanted_stream
[
AVMEDIA_TYPE_NB
]
=
{
[
AVMEDIA_TYPE_AUDIO
]
=
-
1
,
[
AVMEDIA_TYPE_VIDEO
]
=
-
1
,
...
...
@@ -2635,7 +2636,7 @@ static int read_thread(void *arg)
wanted_stream
[
AVMEDIA_TYPE_AUDIO
],
st_index
[
AVMEDIA_TYPE_VIDEO
],
NULL
,
0
);
if
(
!
video_disable
)
if
(
!
video_disable
&&
!
subtitle_disable
)
st_index
[
AVMEDIA_TYPE_SUBTITLE
]
=
av_find_best_stream
(
ic
,
AVMEDIA_TYPE_SUBTITLE
,
wanted_stream
[
AVMEDIA_TYPE_SUBTITLE
],
...
...
@@ -3231,6 +3232,7 @@ static const OptionDef options[] = {
{
"fs"
,
OPT_BOOL
,
{
&
is_full_screen
},
"force full screen"
},
{
"an"
,
OPT_BOOL
,
{
&
audio_disable
},
"disable audio"
},
{
"vn"
,
OPT_BOOL
,
{
&
video_disable
},
"disable video"
},
{
"sn"
,
OPT_BOOL
,
{
&
subtitle_disable
},
"disable subtitling"
},
{
"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
,
{
&
wanted_stream
[
AVMEDIA_TYPE_VIDEO
]
},
"select desired video stream"
,
"stream_number"
},
{
"sst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
wanted_stream
[
AVMEDIA_TYPE_SUBTITLE
]
},
"select desired subtitle stream"
,
"stream_number"
},
...
...
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