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
448f2972
Commit
448f2972
authored
Dec 18, 2016
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: use buffersink accessors.
parent
d9b311d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ffplay.c
ffplay.c
+8
-8
No files found.
ffplay.c
View file @
448f2972
...
...
@@ -2076,7 +2076,7 @@ static int audio_thread(void *arg)
goto
the_end
;
while
((
ret
=
av_buffersink_get_frame_flags
(
is
->
out_audio_filter
,
frame
,
0
))
>=
0
)
{
tb
=
is
->
out_audio_filter
->
inputs
[
0
]
->
time_base
;
tb
=
av_buffersink_get_time_base
(
is
->
out_audio_filter
)
;
#endif
if
(
!
(
af
=
frame_queue_peek_writable
(
&
is
->
sampq
)))
goto
the_end
;
...
...
@@ -2184,7 +2184,7 @@ static int video_thread(void *arg)
last_format
=
frame
->
format
;
last_serial
=
is
->
viddec
.
pkt_serial
;
last_vfilter_idx
=
is
->
vfilter_idx
;
frame_rate
=
filt_out
->
inputs
[
0
]
->
frame_rate
;
frame_rate
=
av_buffersink_get_frame_rate
(
filt_out
)
;
}
ret
=
av_buffersrc_add_frame
(
filt_in
,
frame
);
...
...
@@ -2205,7 +2205,7 @@ static int video_thread(void *arg)
is
->
frame_last_filter_delay
=
av_gettime_relative
()
/
1000000
.
0
-
is
->
frame_last_returned_time
;
if
(
fabs
(
is
->
frame_last_filter_delay
)
>
AV_NOSYNC_THRESHOLD
/
10
.
0
)
is
->
frame_last_filter_delay
=
0
;
tb
=
filt_out
->
inputs
[
0
]
->
time_base
;
tb
=
av_buffersink_get_time_base
(
filt_out
)
;
#endif
duration
=
(
frame_rate
.
num
&&
frame_rate
.
den
?
av_q2d
((
AVRational
){
frame_rate
.
den
,
frame_rate
.
num
})
:
0
);
pts
=
(
frame
->
pts
==
AV_NOPTS_VALUE
)
?
NAN
:
frame
->
pts
*
av_q2d
(
tb
);
...
...
@@ -2642,7 +2642,7 @@ static int stream_component_open(VideoState *is, int stream_index)
case
AVMEDIA_TYPE_AUDIO
:
#if CONFIG_AVFILTER
{
AVFilter
Link
*
l
ink
;
AVFilter
Context
*
s
ink
;
is
->
audio_filter_src
.
freq
=
avctx
->
sample_rate
;
is
->
audio_filter_src
.
channels
=
avctx
->
channels
;
...
...
@@ -2650,10 +2650,10 @@ static int stream_component_open(VideoState *is, int stream_index)
is
->
audio_filter_src
.
fmt
=
avctx
->
sample_fmt
;
if
((
ret
=
configure_audio_filters
(
is
,
afilters
,
0
))
<
0
)
goto
fail
;
link
=
is
->
out_audio_filter
->
inputs
[
0
]
;
sample_rate
=
link
->
sample_rate
;
nb_channels
=
av
filter_link_get_channels
(
l
ink
);
channel_layout
=
link
->
channel_layout
;
sink
=
is
->
out_audio_filter
;
sample_rate
=
av_buffersink_get_sample_rate
(
sink
)
;
nb_channels
=
av
_buffersink_get_channels
(
s
ink
);
channel_layout
=
av_buffersink_get_channel_layout
(
sink
)
;
}
#else
sample_rate
=
avctx
->
sample_rate
;
...
...
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