X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fdxa.c;h=3d85193279ae53774413cce902226b99f06d5025;hb=bc426827492f6c741608af37e2eaab6c8072815d;hp=f4e13835b218cc43c07ec7b425f86e31fa3be898;hpb=e2cc39b6096ed4353293252e3955417b7766f161;p=ffmpeg diff --git a/libavformat/dxa.c b/libavformat/dxa.c index f4e13835b21..3d85193279a 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 && !url_feof(pb)){ tag = avio_rl32(pb);