aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/nut.c
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2008-02-04 10:27:32 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2008-02-04 10:27:32 +0000
commit103d74ea5c0cf187eabd1d15247693b6eaf45ba0 (patch)
tree2b04d8062553128ebd192c6e19c13dcba2c8e677 /libavformat/nut.c
parent1db38dad337a8e62682bcfce20e4ef3f6990c2d8 (diff)
downloadffmpeg-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.c2
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);