[FFmpeg-cvslog] dxa: set audio stream time base using the sample rate

Justin Ruggles git at videolan.org
Thu Mar 1 03:20:25 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Thu Jan 19 15:55:18 2012 -0500| [929dd8c108489d1da0f4fef4920f9f19a45d0b8c] | committer: Justin Ruggles

dxa: set audio stream time base using the sample rate

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=929dd8c108489d1da0f4fef4920f9f19a45d0b8c
---

 libavformat/dxa.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/dxa.c b/libavformat/dxa.c
index 13d2060..65ace26 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);



More information about the ffmpeg-cvslog mailing list