projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa831c4
)
dxa: set audio stream time base using the sample rate
author
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 19 Jan 2012 20:55:18 +0000
(15:55 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 29 Feb 2012 20:45:50 +0000
(15:45 -0500)
libavformat/dxa.c
patch
|
blob
|
history
diff --git
a/libavformat/dxa.c
b/libavformat/dxa.c
index
13d2060
..
65ace26
100644
(file)
--- a/
libavformat/dxa.c
+++ b/
libavformat/dxa.c
@@
-107,6
+107,8
@@
static int dxa_read_header(AVFormatContext *s)
ret = ff_get_wav_header(pb, ast->codec, fsize);
if (ret < 0)
return ret;
+ if (ast->codec->sample_rate > 0)
+ avpriv_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
// find 'data' chunk
while(avio_tell(pb) < c->vidpos && !pb->eof_reached){
tag = avio_rl32(pb);