diff options
author | John Stebbins <[email protected]> | 2019-12-10 16:27:23 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2020-03-29 08:23:20 -0600 |
commit | 494a548865e20767076f2caaa4f23522ee750687 (patch) | |
tree | 536bea5373e6c2c4180e85c60b30f4db8a682697 /contrib | |
parent | 400e8d4784d67978061c059abf5cbe23b0271009 (diff) |
decavsub: use libav to decode EIA 608 subtitles
simplifies code, eliminates deccc608sub.c
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ffmpeg/A15-ccaption_dec-fix-erase-message-pts-in-real_time-mode.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A15-ccaption_dec-fix-erase-message-pts-in-real_time-mode.patch b/contrib/ffmpeg/A15-ccaption_dec-fix-erase-message-pts-in-real_time-mode.patch new file mode 100644 index 000000000..7befe467f --- /dev/null +++ b/contrib/ffmpeg/A15-ccaption_dec-fix-erase-message-pts-in-real_time-mode.patch @@ -0,0 +1,27 @@ +From c206431859594032227ca93f66116a5838b3766b Mon Sep 17 00:00:00 2001 +From: John Stebbins <[email protected]> +Date: Wed, 11 Dec 2019 15:37:34 -0800 +Subject: [PATCH] ccaption_dec: fix erase message pts in "real_time" mode + +The erase message had the same timestamp as the last subtitle, thus +erasing it as soon as it was rendered. +--- + libavcodec/ccaption_dec.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c +index bf3563a0bc..afe290c5a6 100644 +--- a/libavcodec/ccaption_dec.c ++++ b/libavcodec/ccaption_dec.c +@@ -700,6 +700,8 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint + break; + case 0x2c: + /* erase display memory */ ++ if (ctx->real_time) ++ ctx->startv_time = pts; + handle_edm(ctx, pts); + break; + case 0x2d: +-- +2.23.0 + |