diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-19 15:55:18 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-29 15:45:50 -0500 |
commit | 929dd8c108489d1da0f4fef4920f9f19a45d0b8c (patch) | |
tree | e90ddcfd553e088e457a8c1de1f681578a7cec1f /libavformat/dxa.c | |
parent | aa831c4093463e7feda5aa298371b639fd12fcd6 (diff) | |
download | ffmpeg-929dd8c108489d1da0f4fef4920f9f19a45d0b8c.tar.gz |
dxa: set audio stream time base using the sample rate
Diffstat (limited to 'libavformat/dxa.c')
-rw-r--r-- | libavformat/dxa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/dxa.c b/libavformat/dxa.c index 13d2060465..65ace26f9e 100644 --- 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); |