aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-12 18:42:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-12 18:42:21 +0000
commita1e568bd23555149b2528f76d510386d911a6338 (patch)
treeea8ae1a72670828ad6d2a81e80ded8963b8ae50b /libavformat
parentf41c1fac3c3e5bfcc9f6d5380aa228aa85a60562 (diff)
downloadffmpeg-a1e568bd23555149b2528f76d510386d911a6338.tar.gz
wav timestamp truncation fix by (Wolfram Gloger <wmglo dent.med.uni-muenchen de>)
Originally committed as revision 3831 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/wav.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index f2bb503b21..4534cdfabc 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -201,6 +201,8 @@ static int wav_write_header(AVFormatContext *s)
}
end_tag(pb, fmt);
+ av_set_pts_info(s->streams[0], 64, 1, s->streams[0]->codec.sample_rate);
+
/* data header */
wav->data = start_tag(pb, "data");