]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/assenc.c
lavc: deprecate decoded ass subtitles with timings
[ffmpeg] / libavcodec / assenc.c
index 4e9825cb667722248ea19e91a53e026e41895581..dc4f0ffa9722032594ea52533d79ee48584c7448 100644 (file)
@@ -60,6 +60,7 @@ static int ass_encode_frame(AVCodecContext *avctx,
             return -1;
         }
 
+#if FF_API_ASS_TIMING
         if (!strncmp(ass, "Dialogue: ", 10)) {
             if (i > 0) {
                 av_log(avctx, AV_LOG_ERROR, "ASS encoder supports only one "
@@ -86,6 +87,7 @@ static int ass_encode_frame(AVCodecContext *avctx,
             ass_line[strcspn(ass_line, "\r\n")] = 0;
             ass = ass_line;
         }
+#endif
 
         len = av_strlcpy(buf+total_len, ass, bufsize-total_len);