]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/dxa.c
lavf/movenc: fix invalid free with timecode meta and tmcd data copy.
[ffmpeg] / libavformat / dxa.c
index f4e13835b218cc43c07ec7b425f86e31fa3be898..3d85193279ae53774413cce902226b99f06d5025 100644 (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 && !url_feof(pb)){
             tag = avio_rl32(pb);