summaryrefslogtreecommitdiff
path: root/libavformat/wav.c
diff options
context:
space:
mode:
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;