wav timestamp truncation fix by (Wolfram Gloger <wmglo dent.med.uni-muenchen de>)
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Jan 2005 18:42:21 +0000 (18:42 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Jan 2005 18:42:21 +0000 (18:42 +0000)
Originally committed as revision 3831 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/wav.c

index f2bb503..4534cdf 100644 (file)
@@ -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");