diff options
author | Clément Bœsch <u@pkh.me> | 2016-02-21 12:58:36 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-02-26 21:53:34 +0100 |
commit | 22ebbda637257a432c99330ca4c6024665418f0e (patch) | |
tree | 149ca54d92cc1915326106f1fc8cb1ae04a922c1 /libavcodec/assenc.c | |
parent | fa2df3a40124bf1d0dc11999f5a578d40a29d553 (diff) | |
download | ffmpeg-streaming-22ebbda637257a432c99330ca4c6024665418f0e.zip ffmpeg-streaming-22ebbda637257a432c99330ca4c6024665418f0e.tar.gz |
lavc: deprecate decoded ass subtitles with timings
Diffstat (limited to 'libavcodec/assenc.c')
-rw-r--r-- | libavcodec/assenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/assenc.c b/libavcodec/assenc.c index 4e9825c..dc4f0ff 100644 --- a/libavcodec/assenc.c +++ b/libavcodec/assenc.c @@ -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); |