ok trnscode swp
This commit is contained in:
parent
54668c0d93
commit
e9766de877
12 changed files with 221 additions and 243 deletions
17
internal/api/api_test.go
Normal file
17
internal/api/api_test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package api
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestIsTextSubtitleCodec(t *testing.T) {
|
||||
for _, codec := range []string{"ass", "ssa", "subrip", "srt", "text", "webvtt", "mov_text", "SUBRIP"} {
|
||||
if !isTextSubtitleCodec(codec) {
|
||||
t.Errorf("expected %q to be treated as text", codec)
|
||||
}
|
||||
}
|
||||
|
||||
for _, codec := range []string{"hdmv_pgs_subtitle", "dvd_subtitle", "dvb_subtitle", ""} {
|
||||
if isTextSubtitleCodec(codec) {
|
||||
t.Errorf("expected %q to require bitmap handling", codec)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue