summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_enc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-06-14 16:35:46 +0200
committerAnton Khirnov <anton@khirnov.net>2023-06-19 09:48:56 +0200
commitfa717baaa599b07eb647cf70a527b98b18c8236e (patch)
treeca176091896b6c201d4dd5f310f1481624112c21 /fftools/ffmpeg_enc.c
parente89a6d1089d5afdb15f4eb118f24a0a98ac9ae93 (diff)
fftools/ffmpeg_enc: constify the subtitle passed to enc_subtitle()
Diffstat (limited to 'fftools/ffmpeg_enc.c')
-rw-r--r--fftools/ffmpeg_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
index f42f4055d6..4029501313 100644
--- a/fftools/ffmpeg_enc.c
+++ b/fftools/ffmpeg_enc.c
@@ -462,7 +462,7 @@ static int check_recording_time(OutputStream *ost, int64_t ts, AVRational tb)
return 1;
}
-void enc_subtitle(OutputFile *of, OutputStream *ost, AVSubtitle *sub)
+void enc_subtitle(OutputFile *of, OutputStream *ost, const AVSubtitle *sub)
{
Encoder *e = ost->enc;
int subtitle_out_max_size = 1024 * 1024;