early-access version 1680
This commit is contained in:
@@ -72,7 +72,7 @@ class TFConverter:
|
||||
self.conv2d_scopename_inputname_dict = {}
|
||||
self.op2code = {'Conv2D':1, 'DepthToSpace':2, 'MirrorPad':3, 'Maximum':4, 'MathBinary':5, 'MathUnary':6}
|
||||
self.mathbin2code = {'Sub':0, 'Add':1, 'Mul':2, 'RealDiv':3, 'Minimum':4}
|
||||
self.mathun2code = {'Abs':0}
|
||||
self.mathun2code = {'Abs':0, 'Sin':1, 'Cos':2, 'Tan':3, 'Asin':4, 'Acos':5, 'Atan':6, 'Sinh':7, 'Cosh':8, 'Tanh':9, 'Asinh':10, 'Acosh':11, 'Atanh':12}
|
||||
self.mirrorpad_mode = {'CONSTANT':0, 'REFLECT':1, 'SYMMETRIC':2}
|
||||
self.name_operand_dict = {}
|
||||
|
||||
|
@@ -23,4 +23,4 @@ str = 'FFMPEGDNNNATIVE'
|
||||
major = 1
|
||||
|
||||
# increase minor when we don't have to re-convert the model file
|
||||
minor = 6
|
||||
minor = 18
|
||||
|
1
externals/ffmpeg/tools/target_dec_fuzzer.c
vendored
1
externals/ffmpeg/tools/target_dec_fuzzer.c
vendored
@@ -159,6 +159,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
case AV_CODEC_ID_HNM4_VIDEO: maxpixels /= 128; break;
|
||||
case AV_CODEC_ID_IFF_ILBM: maxpixels /= 128; break;
|
||||
case AV_CODEC_ID_INDEO4: maxpixels /= 128; break;
|
||||
case AV_CODEC_ID_LAGARITH: maxpixels /= 1024; break;
|
||||
case AV_CODEC_ID_LSCR: maxpixels /= 16; break;
|
||||
case AV_CODEC_ID_MOTIONPIXELS:maxpixels /= 256; break;
|
||||
case AV_CODEC_ID_MP4ALS: maxsamples /= 65536; break;
|
||||
|
27
externals/ffmpeg/tools/target_dem_fuzzer.c
vendored
27
externals/ffmpeg/tools/target_dem_fuzzer.c
vendored
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "libavutil/avstring.h"
|
||||
|
||||
#include "libavcodec/avcodec.h"
|
||||
#include "libavcodec/bytestream.h"
|
||||
@@ -110,14 +111,38 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
error("Failed avformat_alloc_context()");
|
||||
|
||||
if (size > 2048) {
|
||||
int flags;
|
||||
char extension[64];
|
||||
|
||||
GetByteContext gbc;
|
||||
memcpy (filename, data + size - 1024, 1024);
|
||||
bytestream2_init(&gbc, data + size - 2048, 1024);
|
||||
size -= 2048;
|
||||
|
||||
io_buffer_size = bytestream2_get_le32(&gbc) & 0xFFFFFFF;
|
||||
seekable = bytestream2_get_byte(&gbc) & 1;
|
||||
flags = bytestream2_get_byte(&gbc);
|
||||
seekable = flags & 1;
|
||||
filesize = bytestream2_get_le64(&gbc) & 0x7FFFFFFFFFFFFFFF;
|
||||
|
||||
if ((flags & 2) && strlen(filename) < sizeof(filename) / 2) {
|
||||
AVInputFormat *avif = NULL;
|
||||
int avif_count = 0;
|
||||
while ((avif = av_iformat_next(avif))) {
|
||||
if (avif->extensions)
|
||||
avif_count ++;
|
||||
}
|
||||
avif_count = bytestream2_get_le32(&gbc) % avif_count;
|
||||
|
||||
while ((avif = av_iformat_next(avif))) {
|
||||
if (avif->extensions)
|
||||
if (!avif_count--)
|
||||
break;
|
||||
}
|
||||
av_strlcpy(extension, avif->extensions, sizeof(extension));
|
||||
if (strchr(extension, ','))
|
||||
*strchr(extension, ',') = 0;
|
||||
av_strlcatf(filename, sizeof(filename), ".%s", extension);
|
||||
}
|
||||
}
|
||||
io_buffer = av_malloc(io_buffer_size);
|
||||
if (!io_buffer)
|
||||
|
Reference in New Issue
Block a user