[FFmpeg-devel] [PATCH]Fix timestamp parsing in XSUB decoder

Björn Axelsson gecko
Sat Feb 7 12:52:49 CET 2009


See sample (with ffplay and subtitles enabled) before and after patch:
http://samples.mplayerhq.hu/sub/small.divx

-- 
Bj?rn Axelsson
-------------- next part --------------
Index: libavcodec/xsubdec.c
===================================================================
--- libavcodec/xsubdec.c.orig	2009-02-07 12:42:31.000000000 +0100
+++ libavcodec/xsubdec.c	2009-02-07 12:42:43.000000000 +0100
@@ -28,7 +28,7 @@
 }
 
 static const uint8_t tc_offsets[9] = { 0, 1, 3, 4, 6, 7, 9, 10, 11 };
-static const uint8_t tc_muls[9] = { 10, 6, 10, 6, 10, 6, 10, 10, 1 };
+static const uint8_t tc_muls[9] = { 10, 6, 10, 6, 10, 10, 10, 10, 1 };
 
 static uint64_t parse_timecode(const uint8_t *buf) {
     int i;



More information about the ffmpeg-devel mailing list