diff wav.c @ 567:23b915bb10f5 libavformat

set correct timebase
author michael
date Mon, 18 Oct 2004 09:43:39 +0000
parents a9e04ea89942
children d82ccc7cff1c
line wrap: on
line diff
--- a/wav.c	Sat Oct 16 21:27:42 2004 +0000
+++ b/wav.c	Mon Oct 18 09:43:39 2004 +0000
@@ -301,7 +301,9 @@
 
     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;