From 0914bfdbfc498d99821c2cd0ca3a4f9a184d07b5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 1 Mar 2016 01:00:16 +0000 Subject: Stop erroneous addition of text subtitles to the lists (when an image subtitle is completed with a rect count of zero) which subsequently cause hangs while the decoder looks for these phantom text subtitles. Fixes #812. --- src/lib/ffmpeg.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg.cc') diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index 29dda1b9e..9d6921dcf 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -288,8 +288,9 @@ FFmpeg::subtitle_id (AVSubtitle const & sub) return digester.get (); } +/** @return true if sub starts a new image subtitle */ bool -FFmpeg::subtitle_is_image (AVSubtitle const & sub) +FFmpeg::subtitle_starts_image (AVSubtitle const & sub) { bool image = false; bool text = false; -- cgit v1.2.3