lavf/avidec: Be more verbose when ignoring very large tag size.
This commit is contained in:
@@ -984,9 +984,13 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if (size > 1000000) {
|
if (size > 1000000) {
|
||||||
|
char tag_buf[32];
|
||||||
|
av_get_codec_tag_string(tag_buf, sizeof(tag_buf), tag);
|
||||||
av_log(s, AV_LOG_ERROR,
|
av_log(s, AV_LOG_ERROR,
|
||||||
"Something went wrong during header parsing, "
|
"Something went wrong during header parsing, "
|
||||||
"I will ignore it and try to continue anyway.\n");
|
"tag %s has size %u, "
|
||||||
|
"I will ignore it and try to continue anyway.\n",
|
||||||
|
tag_buf, size);
|
||||||
if (s->error_recognition & AV_EF_EXPLODE)
|
if (s->error_recognition & AV_EF_EXPLODE)
|
||||||
goto fail;
|
goto fail;
|
||||||
avi->movi_list = avio_tell(pb) - 4;
|
avi->movi_list = avio_tell(pb) - 4;
|
||||||
|
Reference in New Issue
Block a user