Commit a1e5be5c authored by Lukasz Marek's avatar Lukasz Marek

lavd/pulse_audio_enc: add pointer checks

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent 954a8f44
......@@ -692,7 +692,9 @@ static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t *
pa_threaded_mainloop_lock(s->mainloop);
pa_stream_get_latency(s->stream, &latency, &neg);
pa_threaded_mainloop_unlock(s->mainloop);
if (wall)
*wall = av_gettime();
if (dts)
*dts = s->timestamp - (neg ? -latency : latency);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment