summaryrefslogtreecommitdiff
path: root/src/stl_binary_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-08-02 13:54:09 +0100
committerCarl Hetherington <cth@carlh.net>2014-08-02 13:54:09 +0100
commit4dd22fc54d31abf64b7e6f13071904d34ab7636a (patch)
tree0d70e6a3e6e3427a9f200267eea77f60326b7fa6 /src/stl_binary_writer.cc
parentc7e599ad97c7d1965cf58451b724260a16bad0fd (diff)
Use FAB subtitler's rather odd DFC -> frame rate mapping.
Diffstat (limited to 'src/stl_binary_writer.cc')
-rw-r--r--src/stl_binary_writer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc
index cb6c71a..9b98b84 100644
--- a/src/stl_binary_writer.cc
+++ b/src/stl_binary_writer.cc
@@ -20,6 +20,7 @@
#include "stl_binary_writer.h"
#include "subtitle.h"
#include "iso6937.h"
+#include "stl_util.h"
#include "compose.hpp"
#include <boost/locale.hpp>
#include <list>
@@ -155,7 +156,7 @@ sub::write_stl_binary (
/* Code page: 850 */
put_string (buffer + 0, "850");
/* Disk format code */
- put_string (buffer + 3, String::compose ("STL%1.01", rint (frames_per_second)));
+ put_string (buffer + 3, stl_frame_rate_to_dfc (frames_per_second));
/* Display standard code: open subtitling */
put_string (buffer + 11, "0");
/* Character code table: Latin (ISO 6937) */