Browse Source

dxa: set audio stream time base using the sample rate

tags/n0.11
Justin Ruggles 13 years ago
parent
commit
929dd8c108
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/dxa.c

+ 2
- 0
libavformat/dxa.c View File

@@ -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);


Loading…
Cancel
Save