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
a2dbf379
Commit
a2dbf379
authored
Sep 01, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dvbsubdec: make compute_edt user settable
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e8d0b84e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ffmpeg.c
ffmpeg.c
+1
-1
dvbsubdec.c
libavcodec/dvbsubdec.c
+2
-1
No files found.
ffmpeg.c
View file @
a2dbf379
...
@@ -2298,7 +2298,7 @@ static int init_input_stream(int ist_index, char *error, int error_len)
...
@@ -2298,7 +2298,7 @@ static int init_input_stream(int ist_index, char *error, int error_len)
av_opt_set_int
(
ist
->
dec_ctx
,
"refcounted_frames"
,
1
,
0
);
av_opt_set_int
(
ist
->
dec_ctx
,
"refcounted_frames"
,
1
,
0
);
if
(
ist
->
dec_ctx
->
codec_id
==
AV_CODEC_ID_DVB_SUBTITLE
)
if
(
ist
->
dec_ctx
->
codec_id
==
AV_CODEC_ID_DVB_SUBTITLE
)
av_dict_set
(
&
ist
->
decoder_opts
,
"compute_edt"
,
"1"
,
0
);
av_dict_set
(
&
ist
->
decoder_opts
,
"compute_edt"
,
"1"
,
AV_DICT_DONT_OVERWRITE
);
if
(
!
av_dict_get
(
ist
->
decoder_opts
,
"threads"
,
NULL
,
0
))
if
(
!
av_dict_get
(
ist
->
decoder_opts
,
"threads"
,
NULL
,
0
))
av_dict_set
(
&
ist
->
decoder_opts
,
"threads"
,
"auto"
,
0
);
av_dict_set
(
&
ist
->
decoder_opts
,
"threads"
,
"auto"
,
0
);
...
...
libavcodec/dvbsubdec.c
View file @
a2dbf379
...
@@ -1585,8 +1585,9 @@ end:
...
@@ -1585,8 +1585,9 @@ end:
return
p
-
buf
;
return
p
-
buf
;
}
}
#define DS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
options
[]
=
{
{
"compute_edt"
,
"compute end of time using pts or timeout"
,
offsetof
(
DVBSubContext
,
compute_edt
),
FF_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
1
,
0
},
{
"compute_edt"
,
"compute end of time using pts or timeout"
,
offsetof
(
DVBSubContext
,
compute_edt
),
FF_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
1
,
DS
},
{
NULL
}
{
NULL
}
};
};
static
const
AVClass
dvbsubdec_class
=
{
static
const
AVClass
dvbsubdec_class
=
{
...
...
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