aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wav.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-10-18 09:43:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-18 09:43:39 +0000
commit595bf4ef63fc9a4d863b5ecc53605640301f2273 (patch)
treeb7dddab15a994a4ea2256c94d55ce95fe7526588 /libavformat/wav.c
parent15862411e696ffab99821e6204f48806d1b34ead (diff)
downloadffmpeg-595bf4ef63fc9a4d863b5ecc53605640301f2273.tar.gz
set correct timebase
Originally committed as revision 3607 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r--libavformat/wav.c4
1 files changed, 3 insertions, 1 deletions
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;