mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-14 14:19:52 +08:00
fix a lint warning about a space needed after && in ifdef
BUG=348 TESTED=cpplint.py --filter=-readability/casting source/*.cc include/libyuv/*.h R=tpsiaki@google.com Review URL: https://webrtc-codereview.appspot.com/21209004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1048 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
b8c4fc71c3
commit
5bd003f081
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1047
|
Version: 1048
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1047
|
#define LIBYUV_VERSION 1048
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -13,8 +13,8 @@
|
|||||||
#ifdef HAVE_JPEG
|
#ifdef HAVE_JPEG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#if !defined(__pnacl__) && !defined(__CLR_VER) && !defined(COVERAGE_ENABLED) &&\
|
#if !defined(__pnacl__) && !defined(__CLR_VER) && \
|
||||||
!defined(TARGET_IPHONE_SIMULATOR)
|
!defined(COVERAGE_ENABLED) && !defined(TARGET_IPHONE_SIMULATOR)
|
||||||
// Must be included before jpeglib.
|
// Must be included before jpeglib.
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#define HAVE_SETJMP
|
#define HAVE_SETJMP
|
||||||
@ -101,7 +101,7 @@ LIBYUV_BOOL MJpegDecoder::LoadFrame(const uint8* src, size_t src_len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
buf_.data = src;
|
buf_.data = src;
|
||||||
buf_.len = (int)(src_len);
|
buf_.len = static_cast<int>(src_len);
|
||||||
buf_vec_.pos = 0;
|
buf_vec_.pos = 0;
|
||||||
decompress_struct_->client_data = &buf_vec_;
|
decompress_struct_->client_data = &buf_vec_;
|
||||||
#ifdef HAVE_SETJMP
|
#ifdef HAVE_SETJMP
|
||||||
@ -411,7 +411,7 @@ void init_source(j_decompress_ptr cinfo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean fill_input_buffer(j_decompress_ptr cinfo) {
|
boolean fill_input_buffer(j_decompress_ptr cinfo) {
|
||||||
BufferVector* buf_vec = (BufferVector*)(cinfo->client_data);
|
BufferVector* buf_vec = reinterpret_cast<BufferVector*>(cinfo->client_data);
|
||||||
if (buf_vec->pos >= buf_vec->len) {
|
if (buf_vec->pos >= buf_vec->len) {
|
||||||
assert(0 && "No more data");
|
assert(0 && "No more data");
|
||||||
// ERROR: No more data
|
// ERROR: No more data
|
||||||
@ -447,7 +447,7 @@ void ErrorHandler(j_common_ptr cinfo) {
|
|||||||
// ERROR: Error in jpeglib: buf
|
// ERROR: Error in jpeglib: buf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SetJmpErrorMgr* mgr = (SetJmpErrorMgr*)(cinfo->err);
|
SetJmpErrorMgr* mgr = reinterpret_cast<SetJmpErrorMgr*>(cinfo->err);
|
||||||
// This rewinds the call stack to the point of the corresponding setjmp()
|
// This rewinds the call stack to the point of the corresponding setjmp()
|
||||||
// and causes it to return (for a second time) with value 1.
|
// and causes it to return (for a second time) with value 1.
|
||||||
longjmp(mgr->setjmp_buffer, 1);
|
longjmp(mgr->setjmp_buffer, 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user