audio_get_output_timestamp(AVFormatContext *s1, int stream,

    int64_t *dts, int64_t *wall)

{

    AlsaData *s  = s1->priv_data;

    snd_pcm_sframes_t delay = 0;

    *wall = av_gettime();

    snd_pcm_delay(s->h, &delay);

    *dts = s1->streams[0]->cur_dts - delay;

}

audio_get_output_timestamp(AVFormatContext *s1, int stream,

    int64_t *dts, int64_t *wall)

{

    AlsaData *s  = s1->priv_data;

    snd_pcm_sframes_t delay = 0;

    *wall = av_gettime();

    snd_pcm_delay(s->h, &delay);

    *dts = s1->streams[0]->cur_dts - delay;

}

FUNC_0(AVFormatContext *VAR_0, int VAR_1,

    int64_t *VAR_2, int64_t *VAR_3)

{

    AlsaData *s  = VAR_0->priv_data;

    snd_pcm_sframes_t delay = 0;

    *VAR_3 = av_gettime();

    snd_pcm_delay(s->h, &delay);

    *VAR_2 = VAR_0->streams[0]->cur_dts - delay;

}

FUNC_0(AVFormatContext *VAR_0, int VAR_1,
int64_t *VAR_2, int64_t *VAR_3)
{ AlsaData *s  = VAR_0->priv_data; snd_pcm_sframes_t delay = 0; *VAR_3 = av_gettime(); snd_pcm_delay(s->h, &delay); *VAR_2 = VAR_0->streams[0]->cur_dts - delay; }