[FFmpeg-cvslog] ALSA encoder: correctly set time_base.
Nicolas George
git at videolan.org
Fri Jul 1 10:06:07 CEST 2011
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Jun 30 19:47:52 2011 +0200| [d1b029dec97cd740943eb0222a519a571e3349c5] | committer: Nicolas George
ALSA encoder: correctly set time_base.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d1b029dec97cd740943eb0222a519a571e3349c5
---
libavdevice/alsa-audio-enc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavdevice/alsa-audio-enc.c b/libavdevice/alsa-audio-enc.c
index a53c176..22a1ea7 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;
More information about the ffmpeg-cvslog
mailing list