OSDN Git Service

lavd/alsa: fix timestamp calculation
authorLukasz Marek <lukasz.m.luki@gmail.com>
Fri, 25 Oct 2013 23:19:31 +0000 (01:19 +0200)
committerNicolas George <george@nsup.org>
Sun, 3 Nov 2013 09:28:15 +0000 (10:28 +0100)
commit6ac9afd16e385fc450c58b8a3fb44baa99ea4af9
treeccb5e6801196bb1bf5f26036db77b16f539b7c61
parent8a701ef7ddbb2d80ef77b14287d286fc9760f131
lavd/alsa: fix timestamp calculation

Current implementation didn't include duration of
last processed packet.
Device may return negative timestamps without
this correction.

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
libavdevice/alsa-audio-enc.c
libavdevice/alsa-audio.h