[FFmpeg-devel] [PATCH]lavf/avidec: Be more verbose when ignoring very large tag size
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Oct 18 01:42:18 EEST 2016
Hi!
Attached patch prints the tag and the tag size when ignoring the size.
Please comment, Carl Eugen
-------------- next part --------------
From e99dc274b7b4b4b5ef502ddb0a8245c1f47c2ece Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Tue, 18 Oct 2016 00:37:06 +0200
Subject: [PATCH] lavf/avidec: Be more verbose when ignoring very large tag
size.
---
libavformat/avidec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index b291625..2fcb0ee 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -986,7 +986,10 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (size > 1000000) {
av_log(s, AV_LOG_ERROR,
"Something went wrong during header parsing, "
- "I will ignore it and try to continue anyway.\n");
+ "tag %c%c%c%c has size %u, "
+ "I will ignore it and try to continue anyway.\n",
+ tag & 0xff, tag >> 8 & 0xff, tag >> 16 & 0xff, tag >> 24 & 0xff,
+ size);
if (s->error_recognition & AV_EF_EXPLODE)
goto fail;
avi->movi_list = avio_tell(pb) - 4;
--
1.7.10.4
More information about the ffmpeg-devel
mailing list