diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2008-02-04 10:27:32 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2008-02-04 10:27:32 +0000 |
commit | 103d74ea5c0cf187eabd1d15247693b6eaf45ba0 (patch) | |
tree | 2b04d8062553128ebd192c6e19c13dcba2c8e677 /libavformat/nut.c | |
parent | 1db38dad337a8e62682bcfce20e4ef3f6990c2d8 (diff) | |
download | ffmpeg-103d74ea5c0cf187eabd1d15247693b6eaf45ba0.tar.gz |
ff_nut_reset_ts() expected to get 'ts*time_base_count', but muxer only
gave it 'ts'. Fixed by changing ff_nut_reset_ts() and demuxer params
Originally committed as revision 11851 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nut.c')
-rw-r--r-- | libavformat/nut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 546bde1cd0..fdcaac6a3e 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -26,7 +26,7 @@ void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){ int i; for(i=0; i<nut->avf->nb_streams; i++){ nut->stream[i].last_pts= av_rescale_rnd( - val / nut->time_base_count, + val, time_base.num * (int64_t)nut->stream[i].time_base->den, time_base.den * (int64_t)nut->stream[i].time_base->num, AV_ROUND_DOWN); |