2013-09-24 01:35:40 +00:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2014-04-10 21:42:38 +00:00
|
|
|
#ifndef MEDIA_FORMATS_MP4_RCHECK_H_
|
|
|
|
#define MEDIA_FORMATS_MP4_RCHECK_H_
|
2013-09-24 01:35:40 +00:00
|
|
|
|
2014-10-01 22:10:21 +00:00
|
|
|
#include "packager/base/logging.h"
|
2013-09-24 01:35:40 +00:00
|
|
|
|
2013-11-27 02:23:30 +00:00
|
|
|
#define RCHECK(x) \
|
|
|
|
do { \
|
|
|
|
if (!(x)) { \
|
|
|
|
LOG(ERROR) << "Failure while processing MP4: " << #x; \
|
|
|
|
return false; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
2013-09-24 01:35:40 +00:00
|
|
|
|
2014-04-10 21:42:38 +00:00
|
|
|
#endif // MEDIA_FORMATS_MP4_RCHECK_H_
|