diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-05-01 01:43:59 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-05-01 01:43:59 +0400 |
commit | c0df9d75bd9a3170a793eb1651354076360998e8 (patch) | |
tree | 0f4c75f07fc395d168bf0a7fcd92d6f9d9e9281b /libavformat/asf-enc.c | |
parent | b7782b47c95c26d674df134973d1403e80fe9767 (diff) |
switch to native time bases
Originally committed as revision 4168 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r-- | libavformat/asf-enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index 5c1bcff346..4e2fd35072 100644 --- a/libavformat/asf-enc.c +++ b/libavformat/asf-enc.c @@ -740,7 +740,7 @@ static int asf_write_packet(AVFormatContext *s, AVPacket *pkt) duration = (codec->frame_number * (int64_t)codec->frame_size * int64_t_C(10000000)) / codec->sample_rate; } else { - duration = av_rescale(codec->frame_number * (int64_t)codec->frame_rate_base, 10000000, codec->frame_rate); + duration = av_rescale(codec->frame_number * (int64_t)codec->time_base.num, 10000000, codec->time_base.den); } } else { duration = pts * 10000; |