summaryrefslogtreecommitdiff
path: root/libavcodec/webvttenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 20:30:58 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:04 -0300
commit1f63665ca567fbc49fa80166d468a822c2999efa (patch)
tree37f924e42ce3c908effe38b56c072df020e18a9e /libavcodec/webvttenc.c
parentcb172ae9abf465093a607fe216d40c84f677b209 (diff)
avcodec: Remove deprecated ASS with inline timing
Deprecated in 22ebbda637257a432c99330ca4c6024665418f0e. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/webvttenc.c')
-rw-r--r--libavcodec/webvttenc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c
index febf6ee370..2419dd3d07 100644
--- a/libavcodec/webvttenc.c
+++ b/libavcodec/webvttenc.c
@@ -171,26 +171,12 @@ static int webvtt_encode_frame(AVCodecContext *avctx,
return AVERROR(EINVAL);
}
-#if FF_API_ASS_TIMING
- if (!strncmp(ass, "Dialogue: ", 10)) {
- int num;
- dialog = ff_ass_split_dialog(s->ass_ctx, ass, 0, &num);
- // TODO reindent
- for (; dialog && num--; dialog++) {
- webvtt_style_apply(s, dialog->style);
- ff_ass_split_override_codes(&webvtt_callbacks, s, dialog->text);
- }
- } else {
-#endif
dialog = ff_ass_split_dialog2(s->ass_ctx, ass);
if (!dialog)
return AVERROR(ENOMEM);
webvtt_style_apply(s, dialog->style);
ff_ass_split_override_codes(&webvtt_callbacks, s, dialog->text);
ff_ass_free_dialog(&dialog);
-#if FF_API_ASS_TIMING
- }
-#endif
}
if (!av_bprint_is_complete(&s->buffer))