You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg: constify AVSubtitle parameters as appropriate
This commit is contained in:
@@ -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 = {
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user