diff --git a/src/main/java/com/wazeedigital/subtitle/FormatSCC.java b/src/main/java/com/wazeedigital/subtitle/FormatSCC.java index 80bec88..38e7926 100644 --- a/src/main/java/com/wazeedigital/subtitle/FormatSCC.java +++ b/src/main/java/com/wazeedigital/subtitle/FormatSCC.java @@ -191,7 +191,7 @@ else if (word == 0x0000) while (tto.captions.containsKey(key)) key++; // we save the caption - tto.captions.put(newCaption.start.mseconds, newCaption); + tto.captions.put(key, newCaption); // and reset the caption builder newCaption = new Caption(); } @@ -212,7 +212,7 @@ else if (word == 0x0000) while (tto.captions.containsKey(key)) key++; // we save the caption - tto.captions.put(newCaption.start.mseconds, newCaption); + tto.captions.put(key, newCaption); } } // End of caption: Swap off-screen buffer with caption screen.