diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2013-10-12 12:51:41 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2013-10-12 13:52:26 +0200 |
commit | 7b1640c4a6e9cdb41a09ed016b3147405a487ef1 (patch) | |
tree | e015a1fba81b2129d863b68a27ae3ebd0e3e5050 /libavdevice/pulse_audio_enc.c | |
parent | aeddc6e3a552d094dfb890dd1f017421816e367b (diff) | |
download | ffmpeg-7b1640c4a6e9cdb41a09ed016b3147405a487ef1.tar.gz |
avdevice/pulse_audio_enc: fix stream index
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/pulse_audio_enc.c')
-rw-r--r-- | libavdevice/pulse_audio_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c index 5f96bec8af..25caa65a95 100644 --- a/libavdevice/pulse_audio_enc.c +++ b/libavdevice/pulse_audio_enc.c @@ -118,7 +118,7 @@ static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t * PulseData *s = h->priv_data; pa_usec_t latency = pa_simple_get_latency(s->pa, NULL); *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) |