From d1b029dec97cd740943eb0222a519a571e3349c5 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Thu, 30 Jun 2011 19:47:52 +0200 Subject: [PATCH] ALSA encoder: correctly set time_base. --- libavdevice/alsa-audio-enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavdevice/alsa-audio-enc.c b/libavdevice/alsa-audio-enc.c index a53c1763d5..22a1ea7ff6 100644 --- a/libavdevice/alsa-audio-enc.c +++ b/libavdevice/alsa-audio-enc.c @@ -61,6 +61,7 @@ static av_cold int audio_write_header(AVFormatContext *s1) st->codec->sample_rate, sample_rate); goto fail; } + av_set_pts_info(st, 64, 1, sample_rate); return res;