Commit e6debcaa authored by Michael Niedermayer's avatar Michael Niedermayer

tools/target_dec_fuzzer: Fix build after FF_INPUT_BUFFER_PADDING_SIZE was removed

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 50e30d9b
......@@ -99,7 +99,7 @@ static void FDBCreate(FuzzDataBuffer *FDB) {
static void FDBDesroy(FuzzDataBuffer *FDB) { av_free(FDB->data_); }
static void FDBRealloc(FuzzDataBuffer *FDB, size_t size) {
size_t needed = size + FF_INPUT_BUFFER_PADDING_SIZE;
size_t needed = size + AV_INPUT_BUFFER_PADDING_SIZE;
av_assert0(needed > size);
if (needed > FDB->size_) {
av_free(FDB->data_);
......@@ -116,8 +116,8 @@ static void FDBPrepare(FuzzDataBuffer *FDB, AVPacket *dst, const uint8_t *data,
FDBRealloc(FDB, size);
memcpy(FDB->data_, data, size);
size_t padd = FDB->size_ - size;
if (padd > FF_INPUT_BUFFER_PADDING_SIZE)
padd = FF_INPUT_BUFFER_PADDING_SIZE;
if (padd > AV_INPUT_BUFFER_PADDING_SIZE)
padd = AV_INPUT_BUFFER_PADDING_SIZE;
memset(FDB->data_ + size, 0, padd);
av_init_packet(dst);
dst->data = FDB->data_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment