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
838e3663
Commit
838e3663
authored
Sep 13, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: move "thread emulation" warning to common code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
391b1e39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ffplay.c
ffplay.c
+0
-3
utils.c
libavcodec/utils.c
+3
-0
No files found.
ffplay.c
View file @
838e3663
...
...
@@ -2890,9 +2890,6 @@ static int opt_duration(const char *opt, const char *arg)
static
int
opt_thread_count
(
const
char
*
opt
,
const
char
*
arg
)
{
thread_count
=
parse_number_or_die
(
opt
,
arg
,
OPT_INT64
,
0
,
INT_MAX
);
#if !HAVE_THREADS
fprintf
(
stderr
,
"Warning: not compiled with thread support, using thread emulation
\n
"
);
#endif
return
0
;
}
...
...
libavcodec/utils.c
View file @
838e3663
...
...
@@ -576,6 +576,9 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
}
avctx
->
frame_number
=
0
;
if
(
!
HAVE_THREADS
)
av_log
(
avctx
,
AV_LOG_WARNING
,
"Warning: not compiled with thread support, using thread emulation
\n
"
);
if
(
HAVE_THREADS
&&
!
avctx
->
thread_opaque
)
{
ret
=
ff_thread_init
(
avctx
);
if
(
ret
<
0
)
{
...
...
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