Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-06-30 21:47:52 +0400
committerNicolas George <nicolas.george@normalesup.org>2011-07-01 11:44:54 +0400
commitd1b029dec97cd740943eb0222a519a571e3349c5 (patch)
tree7e86a0dd3d8cce68cefe8ea4f775757a3e0970bd /libavdevice/alsa-audio-enc.c
parent721be993713550e7f1c3bccf670fd0a1be7e7738 (diff)
ALSA encoder: correctly set time_base.
Diffstat (limited to 'libavdevice/alsa-audio-enc.c')
-rw-r--r--libavdevice/alsa-audio-enc.c1
1 files changed, 1 insertions, 0 deletions
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;