[FFmpeg-cvslog] avdevice/pulse_audio_enc: fix stream index
Lukasz Marek
git at videolan.org
Sat Oct 12 14:19:27 CEST 2013
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Sat Oct 12 12:51:41 2013 +0200| [7b1640c4a6e9cdb41a09ed016b3147405a487ef1] | committer: Lukasz Marek
avdevice/pulse_audio_enc: fix stream index
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b1640c4a6e9cdb41a09ed016b3147405a487ef1
---
libavdevice/pulse_audio_enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index 5f96bec..25caa65 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)
More information about the ffmpeg-cvslog
mailing list