diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-23 12:50:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-31 16:15:47 +0200 |
commit | 3d35b73b2a40b9e99724401d6390750e2bc65318 (patch) | |
tree | abad65db20c1cad11b4b6dc9f77f8a32ffe0a3d5 | |
parent | ad4efb91586dc4918121d96030d247be6af630c1 (diff) | |
download | ffmpeg-3d35b73b2a40b9e99724401d6390750e2bc65318.tar.gz |
fftools/ffmpeg: constify AVSubtitle parameters as appropriate
-rw-r--r-- | fftools/ffmpeg.c | 5 | ||||
-rw-r--r-- | fftools/ffmpeg.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 0539a45856..9c68add0a4 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -211,7 +211,8 @@ static void sub2video_push_ref(InputStream *ist, int64_t pts) } } -void sub2video_update(InputStream *ist, int64_t heartbeat_pts, AVSubtitle *sub) +void sub2video_update(InputStream *ist, int64_t heartbeat_pts, + const AVSubtitle *sub) { AVFrame *frame = ist->sub2video.frame; int8_t *dst; @@ -754,7 +755,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti first_report = 0; } -static int copy_av_subtitle(AVSubtitle *dst, AVSubtitle *src) +static int copy_av_subtitle(AVSubtitle *dst, const AVSubtitle *src) { int ret = AVERROR_BUG; AVSubtitle tmp = { diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 8c149f1f95..451d18db6f 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -742,7 +742,8 @@ int init_simple_filtergraph(InputStream *ist, OutputStream *ost, char *graph_desc); int init_complex_filtergraph(FilterGraph *fg); -void sub2video_update(InputStream *ist, int64_t heartbeat_pts, AVSubtitle *sub); +void sub2video_update(InputStream *ist, int64_t heartbeat_pts, + const AVSubtitle *sub); int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame, int keep_reference); int ifilter_send_eof(InputFilter *ifilter, int64_t pts, AVRational tb); |