#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/filters/media_file_checker.h"
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/time/time.h"
#include "media/ffmpeg/ffmpeg_common.h"
#include "media/ffmpeg/ffmpeg_decoding_loop.h"
#include "media/ffmpeg/ffmpeg_deleters.h"
#include "media/ffmpeg/scoped_av_packet.h"
#include "media/filters/blocking_url_protocol.h"
#include "media/filters/ffmpeg_glue.h"
#include "media/filters/file_data_source.h"
namespace media {
namespace {
constexpr int64_t kMaxCheckTimeInSeconds = …;
void OnMediaFileCheckerError(bool* called) { … }
struct Decoder { … };
}
MediaFileChecker::MediaFileChecker(base::File file) : … { … }
MediaFileChecker::~MediaFileChecker() = default;
bool MediaFileChecker::Start(base::TimeDelta check_time) { … }
}