Browse Source

avcodec: srtdec: Reindent

tags/n3.0
Timothy Gu 10 years ago
parent
commit
9b40ce5a45
1 changed files with 7 additions and 8 deletions
  1. +7
    -8
      libavcodec/srtdec.c

+ 7
- 8
libavcodec/srtdec.c View File

@@ -73,14 +73,13 @@ static int srt_decode_frame(AVCodecContext *avctx,


av_bprint_init(&buffer, 0, AV_BPRINT_SIZE_UNLIMITED); 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); 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); ret = ff_ass_add_rect_bprint(sub, &buffer, ts_start, ts_end-ts_start);


Loading…
Cancel
Save