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
dbedf2aa
Commit
dbedf2aa
authored
Jun 22, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable feeder threads
Originally committed as revision 13868 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0b459fb2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
ffmpeg.c
ffmpeg.c
+5
-0
ffmdec.c
libavformat/ffmdec.c
+1
-0
ffmenc.c
libavformat/ffmenc.c
+1
-0
libav.regression.ref
tests/libav.regression.ref
+1
-1
No files found.
ffmpeg.c
View file @
dbedf2aa
...
@@ -449,6 +449,11 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename)
...
@@ -449,6 +449,11 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename)
else
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_VIDEO
&&
video_stream_copy
)
else
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_VIDEO
&&
video_stream_copy
)
st
->
stream_copy
=
1
;
st
->
stream_copy
=
1
;
if
(
!
st
->
codec
->
thread_count
)
st
->
codec
->
thread_count
=
1
;
if
(
st
->
codec
->
thread_count
>
1
)
avcodec_thread_init
(
st
->
codec
,
st
->
codec
->
thread_count
);
if
(
st
->
codec
->
flags
&
CODEC_FLAG_BITEXACT
)
if
(
st
->
codec
->
flags
&
CODEC_FLAG_BITEXACT
)
nopts
=
1
;
nopts
=
1
;
}
}
...
...
libavformat/ffmdec.c
View file @
dbedf2aa
...
@@ -310,6 +310,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -310,6 +310,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
codec
->
frame_skip_cmp
=
get_be32
(
pb
);
codec
->
frame_skip_cmp
=
get_be32
(
pb
);
codec
->
rc_buffer_aggressivity
=
av_int2dbl
(
get_be64
(
pb
));
codec
->
rc_buffer_aggressivity
=
av_int2dbl
(
get_be64
(
pb
));
codec
->
codec_tag
=
get_be32
(
pb
);
codec
->
codec_tag
=
get_be32
(
pb
);
codec
->
thread_count
=
get_byte
(
pb
);
break
;
break
;
case
CODEC_TYPE_AUDIO
:
case
CODEC_TYPE_AUDIO
:
codec
->
sample_rate
=
get_be32
(
pb
);
codec
->
sample_rate
=
get_be32
(
pb
);
...
...
libavformat/ffmenc.c
View file @
dbedf2aa
...
@@ -158,6 +158,7 @@ static int ffm_write_header(AVFormatContext *s)
...
@@ -158,6 +158,7 @@ static int ffm_write_header(AVFormatContext *s)
put_be32
(
pb
,
codec
->
frame_skip_cmp
);
put_be32
(
pb
,
codec
->
frame_skip_cmp
);
put_be64
(
pb
,
av_dbl2int
(
codec
->
rc_buffer_aggressivity
));
put_be64
(
pb
,
av_dbl2int
(
codec
->
rc_buffer_aggressivity
));
put_be32
(
pb
,
codec
->
codec_tag
);
put_be32
(
pb
,
codec
->
codec_tag
);
put_byte
(
pb
,
codec
->
thread_count
);
break
;
break
;
case
CODEC_TYPE_AUDIO
:
case
CODEC_TYPE_AUDIO
:
put_be32
(
pb
,
codec
->
sample_rate
);
put_be32
(
pb
,
codec
->
sample_rate
);
...
...
tests/libav.regression.ref
View file @
dbedf2aa
...
@@ -15,7 +15,7 @@ bdb7484c68db722f66ba1630cf79844c *./tests/data/b-libav.mpg
...
@@ -15,7 +15,7 @@ bdb7484c68db722f66ba1630cf79844c *./tests/data/b-libav.mpg
d6fdeb9f7083cc827f9510c6c4517dc0 *./tests/data/b-libav.swf
d6fdeb9f7083cc827f9510c6c4517dc0 *./tests/data/b-libav.swf
335771 ./tests/data/b-libav.swf
335771 ./tests/data/b-libav.swf
./tests/data/b-libav.swf CRC=0xe14e8847
./tests/data/b-libav.swf CRC=0xe14e8847
bbdf0d67ad1035d59adc3c4cd245f3a9
*./tests/data/b-libav.ffm
102427263dc342610721d5754fac4d87
*./tests/data/b-libav.ffm
380928 ./tests/data/b-libav.ffm
380928 ./tests/data/b-libav.ffm
./tests/data/b-libav.ffm CRC=0x2b71a386
./tests/data/b-libav.ffm CRC=0x2b71a386
f8ad5bd78f4d012a8ce9570aa395ac54 *./tests/data/b-libav.flv
f8ad5bd78f4d012a8ce9570aa395ac54 *./tests/data/b-libav.flv
...
...
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