On Tue, Oct 18, 2016 at 12:42:18AM +0200, Carl Eugen Hoyos wrote: > Hi! > > Attached patch prints the tag and the tag size when ignoring the size. > > Please comment, Carl Eugen
> avidec.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > 5e698290127169160243ccf1f06fe9c443c41b6c > 0001-lavf-avidec-Be-more-verbose-when-ignoring-very-large.patch > From e99dc274b7b4b4b5ef502ddb0a8245c1f47c2ece Mon Sep 17 00:00:00 2001 > From: Carl Eugen Hoyos <ceho...@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); the last & 0xff is redundant LGTM otherwise [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Never trust a computer, one day, it may think you are the virus. -- Compn
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel