static void srt_style_apply(SRTContext *s, const char *style)
{
- ASSStyle *st = ass_style_get(s->ass_ctx, style);
+ ASSStyle *st = ff_ass_style_get(s->ass_ctx, style);
if (st) {
int c = st->primary_color & 0xFFFFFF;
if (st->font_name && strcmp(st->font_name, ASS_DEFAULT_FONT) ||
};
static int srt_encode_frame(AVCodecContext *avctx,
- unsigned char *buf, int bufsize, void *data)
+ unsigned char *buf, int bufsize, const AVSubtitle *sub)
{
SRTContext *s = avctx->priv_data;
- AVSubtitle *sub = data;
ASSDialog *dialog;
int i, len, num;
.id = AV_CODEC_ID_SRT,
.priv_data_size = sizeof(SRTContext),
.init = srt_encode_init,
- .encode = srt_encode_frame,
+ .encode_sub = srt_encode_frame,
.close = srt_encode_close,
};
#endif
.id = AV_CODEC_ID_SUBRIP,
.priv_data_size = sizeof(SRTContext),
.init = srt_encode_init,
- .encode = srt_encode_frame,
+ .encode_sub = srt_encode_frame,
.close = srt_encode_close,
};
#endif