aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-24 01:34:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-24 01:34:26 +0100
commitfe97bf60b8ac448c927816c82c3460ac1b397385 (patch)
tree213462bc0495a6a684cf8af50b70775dd1ff982c /ffmpeg.c
parent09456d0df13404f004ab3a341d9ac21b7e5e6d6d (diff)
downloadffmpeg-fe97bf60b8ac448c927816c82c3460ac1b397385.tar.gz
ffmpeg: minor simplification of wraping code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2c3dfa21ae..ad13f18e3f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2774,8 +2774,8 @@ static int process_input(int file_index)
av_ts2timestr(input_files[ist->file_index]->ts_offset, &AV_TIME_BASE_Q));
}
- if(!ist->wrap_correction_done && input_files[file_index]->ctx->start_time != AV_NOPTS_VALUE && ist->st->pts_wrap_bits < 64){
- int64_t stime = av_rescale_q(input_files[file_index]->ctx->start_time, AV_TIME_BASE_Q, ist->st->time_base);
+ if(!ist->wrap_correction_done && is->start_time != AV_NOPTS_VALUE && ist->st->pts_wrap_bits < 64){
+ int64_t stime = av_rescale_q(is->start_time, AV_TIME_BASE_Q, ist->st->time_base);
int64_t stime2= stime + (1ULL<<ist->st->pts_wrap_bits);
ist->wrap_correction_done = 1;