[FFmpeg-devel] [PATCH] ffmpeg: do not connect sub2video inputs to outputs.
Nicolas George
george at nsup.org
Sun Mar 2 20:22:42 CET 2014
Fix a segfault when the sub2video input is the only one
(video from movie or other source), caused by trying to
encode subtitles using a video codec.
Signed-off-by: Nicolas George <george at nsup.org>
---
ffmpeg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index 332a233..b500229 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2269,6 +2269,8 @@ static int transcode_init(void)
continue;
if (fg->nb_inputs != 1)
continue;
+ if (fg->inputs[0]->ist->dec->type == AVMEDIA_TYPE_SUBTITLE)
+ continue;
for (k = nb_input_streams-1; k >= 0 ; k--)
if (fg->inputs[0]->ist == input_streams[k])
break;
--
1.9.0
More information about the ffmpeg-devel
mailing list