mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
dxa: set audio stream time base using the sample rate
This commit is contained in:
parent
aa831c4093
commit
929dd8c108
@ -107,6 +107,8 @@ static int dxa_read_header(AVFormatContext *s)
|
|||||||
ret = ff_get_wav_header(pb, ast->codec, fsize);
|
ret = ff_get_wav_header(pb, ast->codec, fsize);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
if (ast->codec->sample_rate > 0)
|
||||||
|
avpriv_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
|
||||||
// find 'data' chunk
|
// find 'data' chunk
|
||||||
while(avio_tell(pb) < c->vidpos && !pb->eof_reached){
|
while(avio_tell(pb) < c->vidpos && !pb->eof_reached){
|
||||||
tag = avio_rl32(pb);
|
tag = avio_rl32(pb);
|
||||||
|
Loading…
Reference in New Issue
Block a user