552
554
int start_time = av_rescale_q(ctx->start_time, avctx->time_base, (AVRational){ 1, 100 });
553
555
int end_time = av_rescale_q(ctx->end_time, avctx->time_base, (AVRational){ 1, 100 });
554
556
av_dlog(ctx, "cdp writing data (%s)\n",ctx->buffer.str);
555
ret = ff_ass_add_rect(sub, ctx->buffer.str, start_time, end_time - start_time , 0);
557
ret = ff_ass_add_rect_bprint(sub, &ctx->buffer, start_time, end_time - start_time);
558
560
sub->pts = av_rescale_q(ctx->start_time, avctx->time_base, AV_TIME_BASE_Q);