mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00

This was required for correctly parsing more than one frame's height/width data properly. Additionally, start handling failure a little more gracefully. Since we don't fully parse a tile before starting to parse the next tile, we will now no longer make it past the first tile mark, meaning we should not handle that scenario well.
19 lines
402 B
C++
19 lines
402 B
C++
/*
|
|
* Copyright (c) 2021, Hunter Salyer <thefalsehonesty@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Video::VP9 {
|
|
|
|
#define SAFE_CALL(call) \
|
|
do { \
|
|
if (!(call)) [[unlikely]] { \
|
|
dbgln("FAILED " #call); \
|
|
return false; \
|
|
} \
|
|
} while (0)
|
|
|
|
}
|