mirror of https://git.ffmpeg.org/ffmpeg.git
Check syntax even if DEBUG is not defined.
This commit is contained in:
parent
e3497907ef
commit
3b6bbfa063
|
@ -1282,9 +1282,7 @@ static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end)
|
||||||
const uint8_t *buf_ptr;
|
const uint8_t *buf_ptr;
|
||||||
unsigned int v, v2;
|
unsigned int v, v2;
|
||||||
int val;
|
int val;
|
||||||
#ifdef DEBUG
|
|
||||||
int skipped=0;
|
int skipped=0;
|
||||||
#endif
|
|
||||||
|
|
||||||
buf_ptr = *pbuf_ptr;
|
buf_ptr = *pbuf_ptr;
|
||||||
while (buf_ptr < buf_end) {
|
while (buf_ptr < buf_end) {
|
||||||
|
@ -1294,9 +1292,7 @@ static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end)
|
||||||
val = *buf_ptr++;
|
val = *buf_ptr++;
|
||||||
goto found;
|
goto found;
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
|
||||||
skipped++;
|
skipped++;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
val = -1;
|
val = -1;
|
||||||
found:
|
found:
|
||||||
|
|
|
@ -143,7 +143,7 @@ const char* av_default_item_name(void* ctx);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
# define av_dlog(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
|
# define av_dlog(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
# define av_dlog(pctx, ...)
|
# define av_dlog(pctx, ...) do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue