提交 180d7f33 编写于 作者: C Clément Bœsch

avcodec/microdvddec: remove old compat code

上级 71f62751
......@@ -260,7 +260,6 @@ static int microdvd_decode_frame(AVCodecContext *avctx,
{
AVSubtitle *sub = data;
AVBPrint new_line;
char c;
char *line = avpkt->data;
char *end = avpkt->data + avpkt->size;
struct microdvd_tag tags[sizeof(MICRODVD_TAGS) - 1] = {{0}};
......@@ -268,15 +267,6 @@ static int microdvd_decode_frame(AVCodecContext *avctx,
if (avpkt->size <= 0)
return avpkt->size;
/* To be removed later */
if (sscanf(line, "{%*d}{%*[0123456789]}%c", &c) == 1 &&
line[avpkt->size - 1] == '\n') {
av_log(avctx, AV_LOG_ERROR, "AVPacket is not clean (contains timing "
"information and a trailing line break). You need to upgrade "
"your libavformat or sanitize your packet.\n");
return AVERROR_INVALIDDATA;
}
av_bprint_init(&new_line, 0, 2048);
// subtitle content
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册