Commit 8cb0acd5 authored by Jan Gerber's avatar Jan Gerber
Browse files

udpate to latest libkate, use SUB for subtitles_category

parent dd3c9759
#!/bin/bash #!/bin/bash
version=0.2.5 version=0.3.0
baseurl="http://libkate.googlecode.com/files/libkate-$version.tar.gz" baseurl="http://libkate.googlecode.com/files/libkate-$version.tar.gz"
which wget >& /dev/null which wget >& /dev/null
......
...@@ -764,7 +764,7 @@ void ff2theora_output(ff2theora this) { ...@@ -764,7 +764,7 @@ void ff2theora_output(ff2theora this) {
fprintf(stderr, "WARNING - Subtitles language not set for input file %d\n",i); fprintf(stderr, "WARNING - Subtitles language not set for input file %d\n",i);
} }
kate_info_set_language(ki, ks->subtitles_language); kate_info_set_language(ki, ks->subtitles_language);
kate_info_set_category(ki, ks->subtitles_category[0]?ks->subtitles_category:"subtitles"); kate_info_set_category(ki, ks->subtitles_category[0]?ks->subtitles_category:"SUB");
if(this->force_input_fps.num > 0) { if(this->force_input_fps.num > 0) {
ki->gps_numerator = this->force_input_fps.num; /* fps= numerator/denominator */ ki->gps_numerator = this->force_input_fps.num; /* fps= numerator/denominator */
ki->gps_denominator = this->force_input_fps.den; ki->gps_denominator = this->force_input_fps.den;
...@@ -1821,7 +1821,7 @@ int main (int argc, char **argv){ ...@@ -1821,7 +1821,7 @@ int main (int argc, char **argv){
printf("Muxing Kate stream %d from %s as %s %s\n", printf("Muxing Kate stream %d from %s as %s %s\n",
n,ks->filename, n,ks->filename,
ks->subtitles_language[0]?ks->subtitles_language:"<unknown language>", ks->subtitles_language[0]?ks->subtitles_language:"<unknown language>",
ks->subtitles_category[0]?ks->subtitles_category:"subtitles"); ks->subtitles_category[0]?ks->subtitles_category:"SUB");
} }
else { else {
if (n!=convert->n_kate_streams) { if (n!=convert->n_kate_streams) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment