[MPlayer-dev-eng] [PATCH] JACOSub subtitle format (2)
Salvatore Falco
sfalco at studenti.ing.uniroma1.it
Thu Apr 4 13:34:56 CEST 2002
I beg your pardon, this time I hope to be compliant with DOCS/tech/patch
begin-base64 644 subreader.c.patch
LS0tIHN1YnJlYWRlci5jLm9yaWcJVGh1IEFwciAgNCAxMTo1Mjo1MSAyMDAy
CisrKyBzdWJyZWFkZXIuYwlUaHUgQXByICA0IDExOjU4OjI1IDIwMDIKQEAg
LTQ3Myw2ICs0NzMsNTYgQEAKICAgICByZXR1cm4gY3VycmVudDsKIH0KIAor
c3VidGl0bGUgKnN1Yl9yZWFkX2xpbmVfamFjb3N1YihGSUxFICpmZCxzdWJ0
aXRsZSAqY3VycmVudCkgeworICAgIGNoYXIgbGluZVtMSU5FX0xFTisxXTsK
KyAgICBjaGFyIGxpbmUyW0xJTkVfTEVOKzFdOworICAgIGNoYXIgZ2FyYmFn
ZVtMSU5FX0xFTisxXTsKKyAgICBjaGFyIGdhcmJhZ2UyW0xJTkVfTEVOKzFd
OworICAgIGludCBhMSxhMixhMyxhNCxiMSxiMixiMyxiNCwgbGVuLCBjb3Vu
dDsKKyAgICBjaGFyICpwPU5VTEwsICpxPU5VTEwsICpyPU5VTEw7CisKKyAg
ICAKKyAgICBiemVybyAoY3VycmVudCwgc2l6ZW9mKHN1YnRpdGxlKSk7Cisg
ICAgd2hpbGUgKDEpIHsKKwlpZiAoIWZnZXRzIChsaW5lLCAxMDAwLCBmZCkp
IHJldHVybiBOVUxMOworCWlmIChzc2NhbmYgKGxpbmUsICIlZDolZDolZC4l
ZCAlZDolZDolZC4lZCIsJmExLCZhMiwmYTMsJmE0LCZiMSwmYjIsJmIzLCZi
NCkgPCA4KSBjb250aW51ZTsKKwlwPWxpbmU7CisJd2hpbGUoKCpwKSE9J30n
KSBwKys7CisJcCsrIDsKKwlwKysgOworCXEgPSBwOworCXIgPSBsaW5lMiA7
CisJbGVuID0gMCA7CisKKyAgICAJd2hpbGUoICgoKn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Sk9PTgpCisJCXtzdWJfdXNlc190aW1lPTE7cmV0dXJuIFNVQl9KQUNPU1VC
O30KIAlpZiAoc3NjYW5mIChsaW5lLCAiJWQ6JWQ6JWQ6IiwgICAgICZpLCAm
aSwgJmkgKT09MykKIAkJe3N1Yl91c2VzX3RpbWU9MTtyZXR1cm4gU1VCX1ZQ
TEFZRVI7fQogCWlmIChzc2NhbmYgKGxpbmUsICIlZDolZDolZCAiLCAgICAg
JmksICZpLCAmaSApPT0zKQpAQCAtNjM4LDcgKzY5MCw4IEBACiAJICAgIHN1
Yl9yZWFkX2xpbmVfc3NhLAogCSAgICBzdWJfcmVhZF9saW5lX2R1bm5vd2hh
dCwKIAkgICAgc3ViX3JlYWRfbGluZV9tcHN1YiwKLQkgICAgc3ViX3JlYWRf
bGluZV9hcXQKKwkgICAgc3ViX3JlYWRfbGluZV9hcXQsCisJICAgIHN1Yl9y
ZWFkX2xpbmVfamFjb3N1YgogCiAgICAgfTsKICAgICBpZihmaWxlbmFtZT09
TlVMTCkgcmV0dXJuIE5VTEw7IC8vcW54IHNlZ2ZhdWx0Cg==
====
begin-base64 644 subreader.h.patch
LS0tIHN1YnJlYWRlci5oLm9yaWcJVGh1IEFwciAgNCAxMTo1NjowMiAyMDAy
CisrKyBzdWJyZWFkZXIuaAlUaHUgQXByICA0IDExOjU2OjIzIDIwMDIKQEAg
LTE3LDYgKzE3LDcgQEAKICNkZWZpbmUgU1VCX0RVTk5PV0hBVCA3CQkvLyBG
SVhNRSB3aGF0IGZvcm1hdCBpcyBpdCA/CiAjZGVmaW5lIFNVQl9NUFNVQiAg
ICAgOAogI2RlZmluZSBTVUJfQVFUSVRMRSAgIDkKKyNkZWZpbmUgU1VCX0pB
Q09TVUIgICAxMAogCiAvLyBPbmUgb2YgdGhlIFNVQl8qIGNvbnN0YW50IGFi
b3ZlCiBleHRlcm4gaW50IHN1Yl9mb3JtYXQ7Cg==
====
Bye, Salvatore Falco
--- Linux User Group Roma ---
More information about the MPlayer-dev-eng
mailing list