mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-17 12:37:01 +00:00
avdevice/pulse_audio_enc: fix stream index
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
parent
aeddc6e3a5
commit
7b1640c4a6
@ -118,7 +118,7 @@ static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t *
|
|||||||
PulseData *s = h->priv_data;
|
PulseData *s = h->priv_data;
|
||||||
pa_usec_t latency = pa_simple_get_latency(s->pa, NULL);
|
pa_usec_t latency = pa_simple_get_latency(s->pa, NULL);
|
||||||
*wall = av_gettime();
|
*wall = av_gettime();
|
||||||
*dts = h->streams[0]->cur_dts - latency;
|
*dts = h->streams[s->stream_index]->cur_dts - latency;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define OFFSET(a) offsetof(PulseData, a)
|
#define OFFSET(a) offsetof(PulseData, a)
|
||||||
|
Loading…
Reference in New Issue
Block a user