# HG changeset patch # User michael # Date 1098092619 0 # Node ID 23b915bb10f5631c3d8225f7cb7d0b78995f8c5e # Parent c1e54abaa87e052f8378169526ffee08a2172b6b set correct timebase diff -r c1e54abaa87e -r 23b915bb10f5 au.c --- a/au.c Sat Oct 16 21:27:42 2004 +0000 +++ b/au.c Mon Oct 18 09:43:39 2004 +0000 @@ -148,6 +148,7 @@ st->codec.codec_id = codec; st->codec.channels = channels; st->codec.sample_rate = rate; + av_set_pts_info(st, 64, 1, rate); return 0; } diff -r c1e54abaa87e -r 23b915bb10f5 raw.c --- a/raw.c Sat Oct 16 21:27:42 2004 +0000 +++ b/raw.c Mon Oct 18 09:43:39 2004 +0000 @@ -60,6 +60,7 @@ case CODEC_TYPE_AUDIO: st->codec.sample_rate = ap->sample_rate; st->codec.channels = ap->channels; + av_set_pts_info(st, 64, 1, st->codec.sample_rate); break; case CODEC_TYPE_VIDEO: st->codec.frame_rate = ap->frame_rate; diff -r c1e54abaa87e -r 23b915bb10f5 sol.c --- a/sol.c Sat Oct 16 21:27:42 2004 +0000 +++ b/sol.c Mon Oct 18 09:43:39 2004 +0000 @@ -117,7 +117,8 @@ st->codec.codec_tag = id; st->codec.codec_id = codec; st->codec.channels = channels; - st->codec.sample_rate = rate; + st->codec.sample_rate = rate; + av_set_pts_info(st, 64, 1, rate); return 0; } diff -r c1e54abaa87e -r 23b915bb10f5 wav.c --- a/wav.c Sat Oct 16 21:27:42 2004 +0000 +++ b/wav.c Mon Oct 18 09:43:39 2004 +0000 @@ -301,7 +301,9 @@ get_wav_header(pb, &st->codec, size); st->need_parsing = 1; - + + av_set_pts_info(st, 64, 1, st->codec.sample_rate); + size = find_tag(pb, MKTAG('d', 'a', 't', 'a')); if (size < 0) return -1;