diff --git a/ffmpeg.c b/ffmpeg.c
index b688a8a299c9001a999388fb7a2441cd255e7883..9dbc50b855ccd8b4d7517f118c7598c65a23235f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2388,7 +2388,7 @@ static int transcode(OutputFile *output_files,
             if (ost->is_past_recording_time || no_packet[ist->file_index] ||
                 (os->pb && avio_tell(os->pb) >= of->limit_filesize))
                 continue;
-                opts = ost->st->pts.val * av_q2d(ost->st->time_base);
+            opts = ost->st->pts.val * av_q2d(ost->st->time_base);
             ipts = ist->pts;
             if (!input_files[ist->file_index].eof_reached){
                 if(ipts < ipts_min) {