[FFmpeg-cvslog] avcodec: srtdec: Reindent

Timothy Gu git at videolan.org
Tue Oct 27 07:25:10 CET 2015


ffmpeg | branch: master | Timothy Gu <timothygu99 at gmail.com> | Mon Oct 26 23:23:59 2015 -0700| [9b40ce5a454895866330cdaeccac986bbbc3b18d] | committer: Timothy Gu

avcodec: srtdec: Reindent

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

 libavcodec/srtdec.c |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c
index dd6bc9d..542dd35 100644
--- a/libavcodec/srtdec.c
+++ b/libavcodec/srtdec.c
@@ -73,14 +73,13 @@ static int srt_decode_frame(AVCodecContext *avctx,
 
     av_bprint_init(&buffer, 0, AV_BPRINT_SIZE_UNLIMITED);
 
-        // TODO: reindent
-            // Do final divide-by-10 outside rescale to force rounding down.
-            ts_start = av_rescale_q(avpkt->pts,
-                                    avctx->time_base,
-                                    (AVRational){1,100});
-            ts_end   = av_rescale_q(avpkt->pts + avpkt->duration,
-                                    avctx->time_base,
-                                    (AVRational){1,100});
+    // Do final divide-by-10 outside rescale to force rounding down.
+    ts_start = av_rescale_q(avpkt->pts,
+                            avctx->time_base,
+                            (AVRational){1,100});
+    ts_end   = av_rescale_q(avpkt->pts + avpkt->duration,
+                            avctx->time_base,
+                            (AVRational){1,100});
 
     srt_to_ass(avctx, &buffer, avpkt->data, x1, y1, x2, y2);
     ret = ff_ass_add_rect_bprint(sub, &buffer, ts_start, ts_end-ts_start);



More information about the ffmpeg-cvslog mailing list