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
7ffa458d
Commit
7ffa458d
authored
Aug 25, 2019
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/movie: Use filter thread count for decoding threads.
Fixes ticket #7542.
parent
61b7676b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src_movie.c
libavfilter/src_movie.c
+4
-3
No files found.
libavfilter/src_movie.c
View file @
7ffa458d
...
...
@@ -153,14 +153,14 @@ static AVStream *find_stream(void *log, AVFormatContext *avf, const char *spec)
return
found
;
}
static
int
open_stream
(
void
*
log
,
MovieStream
*
st
)
static
int
open_stream
(
AVFilterContext
*
ctx
,
MovieStream
*
st
)
{
AVCodec
*
codec
;
int
ret
;
codec
=
avcodec_find_decoder
(
st
->
st
->
codecpar
->
codec_id
);
if
(
!
codec
)
{
av_log
(
log
,
AV_LOG_ERROR
,
"Failed to find any codec
\n
"
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Failed to find any codec
\n
"
);
return
AVERROR
(
EINVAL
);
}
...
...
@@ -173,9 +173,10 @@ static int open_stream(void *log, MovieStream *st)
return
ret
;
st
->
codec_ctx
->
refcounted_frames
=
1
;
st
->
codec_ctx
->
thread_count
=
ff_filter_get_nb_threads
(
ctx
);
if
((
ret
=
avcodec_open2
(
st
->
codec_ctx
,
codec
,
NULL
))
<
0
)
{
av_log
(
log
,
AV_LOG_ERROR
,
"Failed to open codec
\n
"
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Failed to open codec
\n
"
);
return
ret
;
}
...
...
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