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
84c2d8af
Commit
84c2d8af
authored
Jun 30, 2011
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: implement get_output_timestamp.
parent
b442ca69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
alsa-audio-enc.c
libavdevice/alsa-audio-enc.c
+12
-0
No files found.
libavdevice/alsa-audio-enc.c
View file @
84c2d8af
...
...
@@ -102,6 +102,17 @@ static int audio_write_packet(AVFormatContext *s1, AVPacket *pkt)
return
0
;
}
static
void
audio_get_output_timestamp
(
AVFormatContext
*
s1
,
int
stream
,
int64_t
*
dts
,
int64_t
*
wall
)
{
AlsaData
*
s
=
s1
->
priv_data
;
snd_pcm_sframes_t
delay
=
0
;
*
wall
=
av_gettime
();
snd_pcm_delay
(
s
->
h
,
&
delay
);
*
dts
=
s1
->
streams
[
0
]
->
cur_dts
-
delay
;
}
AVOutputFormat
ff_alsa_muxer
=
{
"alsa"
,
NULL_IF_CONFIG_SMALL
(
"ALSA audio output"
),
...
...
@@ -113,5 +124,6 @@ AVOutputFormat ff_alsa_muxer = {
audio_write_header
,
audio_write_packet
,
ff_alsa_close
,
.
get_output_timestamp
=
audio_get_output_timestamp
,
.
flags
=
AVFMT_NOFILE
,
};
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