#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/parsers/ivf_parser.h"
#include <cstring>
#include "base/check.h"
#include "base/check_op.h"
#include "base/containers/span.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
namespace media {
IvfParser::IvfParser() : … { … }
bool IvfParser::Initialize(const uint8_t* stream,
size_t size,
IvfFileHeader* file_header) { … }
bool IvfParser::ParseNextFrame(IvfFrameHeader* frame_header,
const uint8_t** payload) { … }
}