This avoids (mis)detection of severely damaged or fuzzed streams and
all sorts of crashes or failures down the line.
Bug-Id: 1027
---
I have no idea how many (or any at all) real AAC streams this might stop
from being detected, but trying not to crash in damaged or malicious
streams down the line is a game of whack-a-mole that is IMO impossible
to win...
libavformat/aacdec.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c
index 2f20792..20f2c08 100644
--- a/libavformat/aacdec.c
+++ b/libavformat/aacdec.c
@@ -68,8 +68,6 @@ static int adts_aac_probe(AVProbeData *p)
return AVPROBE_SCORE_EXTENSION;
else if (max_frames >= 3)
return AVPROBE_SCORE_EXTENSION / 2;
- else if (max_frames >= 1)
- return 1;
else
return 0;
}
--
2.1.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel