mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-18 20:12:50 +00:00
[PR #651] [MERGED] Improve SBS #1498
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/651
Author: @maxkoryukov
Created: 1/15/2017
Status: ✅ Merged
Merged: 1/17/2017
Merged by: @cfsmp3
Base:
master← Head:fix/sbs-rebased-1📝 Commits (10+)
5c2d695Fixed format specifiers for debug output5404108Some improvements for test-environment7c9ffbbLevenshtein for char * inutility.c1b1a572SBS: use Levenshtein distance to detect duplicates in subsc582175Wrap debug instructions in #ifdeff23beabFix error with uninitialedsbs_handled_len. Freesbs_bufferon dinit_encoder_contextad7b141Tiny fixes93e407fImprove SBS: fix for #639 and non-gready similarity detectionb5b2a7dProbably fix the maxkoryukov/ccextractor#1 : split to sentences566d128Remove SBS stuff from decoder_init📊 Changes
13 files changed (+814 additions, -254 deletions)
View changed files
📝
.gitignore(+5 -0)📝
src/lib_ccx/ccx_decoders_common.c(+0 -6)📝
src/lib_ccx/ccx_encoders_common.c(+3 -6)📝
src/lib_ccx/ccx_encoders_common.h(+1 -9)📝
src/lib_ccx/ccx_encoders_splitbysentence.c(+461 -136)📝
src/lib_ccx/utility.c(+21 -0)📝
src/lib_ccx/utility.h(+2 -0)📝
tests/Makefile(+2 -3)📝
tests/README.md(+7 -7)📝
tests/ccx_encoders_splitbysentence_suite.c(+210 -87)📝
tests/runtest.c(+5 -0)➕
tests/samples/sbs_append_string_00(+66 -0)➕
tests/samples/sbs_append_string_01(+31 -0)📄 Description
In this PR:
encoder_context, SBS uses its own buffers and structuresThe code is still dirty, but it already works good enough
Important notice
SBS is color-blind, so
<font>tags cause errors in resulting output (</font>will be placed in next sub). Please, runccextractor -sbsonly with-nodvbcolor🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.