Mercurial > libavformat.hg
changeset 3011:0439b354e005 libavformat
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
author | ods15 |
---|---|
date | Mon, 04 Feb 2008 10:27:32 +0000 |
parents | 0718b931314a |
children | 2214e8b1cb4d |
files | nut.c nutdec.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nut.c Mon Feb 04 01:06:04 2008 +0000 +++ b/nut.c Mon Feb 04 10:27:32 2008 +0000 @@ -26,7 +26,7 @@ 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);
--- a/nutdec.c Mon Feb 04 01:06:04 2008 +0000 +++ b/nutdec.c Mon Feb 04 10:27:32 2008 +0000 @@ -427,7 +427,7 @@ if(*back_ptr < 0) return -1; - ff_nut_reset_ts(nut, nut->time_base[tmp % nut->time_base_count], tmp); + ff_nut_reset_ts(nut, nut->time_base[tmp % nut->time_base_count], tmp / nut->time_base_count); if(skip_reserved(bc, end) || get_checksum(bc)){ av_log(s, AV_LOG_ERROR, "sync point checksum mismatch\n");