From 595bf4ef63fc9a4d863b5ecc53605640301f2273 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 18 Oct 2004 09:43:39 +0000 Subject: set correct timebase Originally committed as revision 3607 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/wav.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat/wav.c') diff --git a/libavformat/wav.c b/libavformat/wav.c index a85e9d6665..2d28b8f2cf 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -301,7 +301,9 @@ static int wav_read_header(AVFormatContext *s, get_wav_header(pb, &st->codec, size); st->need_parsing = 1; - + + av_set_pts_info(st, 64, 1, st->codec.sample_rate); + size = find_tag(pb, MKTAG('d', 'a', 't', 'a')); if (size < 0) return -1; -- cgit v1.2.3