aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-09-20 22:30:26 +0200
committerClément Bœsch <u@pkh.me>2014-09-27 17:55:29 +0200
commit5ec90c90c60456fbdbb2e0b473aed9a3802129b9 (patch)
tree25b8882274a005a406f5be318ee4eb5c4cc4e32e
parent180d7f330bd99ba17ba65dcd44e3918892f1f275 (diff)
downloadffmpeg-5ec90c90c60456fbdbb2e0b473aed9a3802129b9.tar.gz
avcodec/subviewerdec: remove old compat code
-rw-r--r--libavcodec/subviewerdec.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/subviewerdec.c b/libavcodec/subviewerdec.c
index b41f7a98b3..4af5926490 100644
--- a/libavcodec/subviewerdec.c
+++ b/libavcodec/subviewerdec.c
@@ -50,20 +50,11 @@ static int subviewer_event_to_ass(AVBPrint *buf, const char *p)
static int subviewer_decode_frame(AVCodecContext *avctx,
void *data, int *got_sub_ptr, AVPacket *avpkt)
{
- char c;
int ret = 0;
AVSubtitle *sub = data;
const char *ptr = avpkt->data;
AVBPrint buf;
- /* To be removed later */
- if (ptr && sscanf(ptr, "%*u:%*u:%*u.%*u,%*u:%*u:%*u.%*u%c", &c) == 1) {
- av_log(avctx, AV_LOG_ERROR, "AVPacket is not clean (contains timing "
- "information). You need to upgrade your libavformat or "
- "sanitize your packet.\n");
- return AVERROR_INVALIDDATA;
- }
-
av_bprint_init(&buf, 0, AV_BPRINT_SIZE_UNLIMITED);
// note: no need to rescale pts & duration since they are in the same
// timebase as ASS (1/100)