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
1ad1eaad
Commit
1ad1eaad
authored
Mar 03, 2009
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable AVFMT_FLAG_NONBLOCK.
Originally committed as revision 17785 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d61f30a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ffmpeg.c
ffmpeg.c
+2
-0
No files found.
ffmpeg.c
View file @
1ad1eaad
...
...
@@ -2805,6 +2805,7 @@ static void opt_input_file(const char *filename)
ic
->
video_codec_id
=
find_codec_or_die
(
video_codec_name
,
CODEC_TYPE_VIDEO
,
0
);
ic
->
audio_codec_id
=
find_codec_or_die
(
audio_codec_name
,
CODEC_TYPE_AUDIO
,
0
);
ic
->
subtitle_codec_id
=
find_codec_or_die
(
subtitle_codec_name
,
CODEC_TYPE_SUBTITLE
,
0
);
ic
->
flags
|=
AVFMT_FLAG_NONBLOCK
;
/* open the input file with generic libav function */
err
=
av_open_input_file
(
&
ic
,
filename
,
file_iformat
,
0
,
ap
);
...
...
@@ -3395,6 +3396,7 @@ static void opt_output_file(const char *filename)
oc
->
preload
=
(
int
)(
mux_preload
*
AV_TIME_BASE
);
oc
->
max_delay
=
(
int
)(
mux_max_delay
*
AV_TIME_BASE
);
oc
->
loop_output
=
loop_output
;
oc
->
flags
|=
AVFMT_FLAG_NONBLOCK
;
set_context_opts
(
oc
,
avformat_opts
,
AV_OPT_FLAG_ENCODING_PARAM
);
...
...
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