[FFmpeg-cvslog] ffmpeg: minor simplification of wraping code

Michael Niedermayer git at videolan.org
Sat Nov 24 01:59:59 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 24 01:34:26 2012 +0100| [fe97bf60b8ac448c927816c82c3460ac1b397385] | committer: Michael Niedermayer

ffmpeg: minor simplification of wraping code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe97bf60b8ac448c927816c82c3460ac1b397385
---

 ffmpeg.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 2c3dfa2..ad13f18 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;
 



More information about the ffmpeg-cvslog mailing list