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
6f5e7e86
Commit
6f5e7e86
authored
Jun 24, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: use the more powerful version of abuffersink.
parent
1f5c1333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
ffmpeg.c
ffmpeg.c
+7
-10
No files found.
ffmpeg.c
View file @
6f5e7e86
...
...
@@ -882,7 +882,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter,
snprintf
(
name
,
sizeof
(
name
),
"output stream %d:%d"
,
ost
->
file_index
,
ost
->
index
);
ret
=
avfilter_graph_create_filter
(
&
ofilter
->
filter
,
avfilter_get_by_name
(
"abuffersink
_old
"
),
avfilter_get_by_name
(
"abuffersink"
),
name
,
NULL
,
NULL
,
fg
->
graph
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -1939,15 +1939,8 @@ static int poll_filters(void)
filtered_frame
=
ost
->
filtered_frame
;
while
(
!
ost
->
is_past_recording_time
)
{
if
(
ost
->
enc
->
type
==
AVMEDIA_TYPE_AUDIO
&&
!
(
ost
->
enc
->
capabilities
&
CODEC_CAP_VARIABLE_FRAME_SIZE
))
ret
=
av_buffersink_read_samples
(
ost
->
filter
->
filter
,
&
picref
,
ost
->
st
->
codec
->
frame_size
);
else
if
(
ost
->
enc
->
type
==
AVMEDIA_TYPE_AUDIO
)
ret
=
av_buffersink_read
(
ost
->
filter
->
filter
,
&
picref
);
else
ret
=
av_buffersink_get_buffer_ref
(
ost
->
filter
->
filter
,
&
picref
,
AV_BUFFERSINK_FLAG_NO_REQUEST
);
ret
=
av_buffersink_get_buffer_ref
(
ost
->
filter
->
filter
,
&
picref
,
AV_BUFFERSINK_FLAG_NO_REQUEST
);
if
(
ret
<
0
)
{
if
(
ret
!=
AVERROR
(
EAGAIN
)
&&
ret
!=
AVERROR_EOF
)
{
char
buf
[
256
];
...
...
@@ -3108,6 +3101,10 @@ static int transcode_init(void)
ret
=
AVERROR
(
EINVAL
);
goto
dump_format
;
}
if
(
ost
->
enc
->
type
==
AVMEDIA_TYPE_AUDIO
&&
!
(
ost
->
enc
->
capabilities
&
CODEC_CAP_VARIABLE_FRAME_SIZE
))
av_buffersink_set_frame_size
(
ost
->
filter
->
filter
,
ost
->
st
->
codec
->
frame_size
);
assert_codec_experimental
(
ost
->
st
->
codec
,
1
);
assert_avoptions
(
ost
->
opts
);
if
(
ost
->
st
->
codec
->
bit_rate
&&
ost
->
st
->
codec
->
bit_rate
<
1000
)
...
...
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