[FFmpeg-devel] [PATCH] Respect -copyinkf for subtitles.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Apr 15 21:44:58 CEST 2012


Necessary to make it possible to copy teletext streams
(trac issue #531).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
 ffmpeg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index f5025b0..cbfacc0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4263,6 +4263,8 @@ static OutputStream *new_subtitle_stream(OptionsContext *o, AVFormatContext *oc,
 
     subtitle_enc->codec_type = AVMEDIA_TYPE_SUBTITLE;
 
+    MATCH_PER_STREAM_OPT(copy_initial_nonkeyframes, i, ost->copy_initial_nonkeyframes, oc, st);
+
     return ost;
 }
 
-- 
1.7.10



More information about the ffmpeg-devel mailing list