mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
fftools/ffmpeg_enc: constify the subtitle passed to enc_subtitle()
This commit is contained in:
parent
e89a6d1089
commit
fa717baaa5
2 changed files with 2 additions and 2 deletions
|
|
@ -816,7 +816,7 @@ int enc_alloc(Encoder **penc, const AVCodec *codec);
|
|||
void enc_free(Encoder **penc);
|
||||
|
||||
int enc_open(OutputStream *ost, AVFrame *frame);
|
||||
void enc_subtitle(OutputFile *of, OutputStream *ost, AVSubtitle *sub);
|
||||
void enc_subtitle(OutputFile *of, OutputStream *ost, const AVSubtitle *sub);
|
||||
void enc_frame(OutputStream *ost, AVFrame *frame);
|
||||
void enc_flush(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue