| ... | ... |
@@ -1282,9 +1282,7 @@ static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end) |
| 1282 | 1282 |
const uint8_t *buf_ptr; |
| 1283 | 1283 |
unsigned int v, v2; |
| 1284 | 1284 |
int val; |
| 1285 |
-#ifdef DEBUG |
|
| 1286 | 1285 |
int skipped=0; |
| 1287 |
-#endif |
|
| 1288 | 1286 |
|
| 1289 | 1287 |
buf_ptr = *pbuf_ptr; |
| 1290 | 1288 |
while (buf_ptr < buf_end) {
|
| ... | ... |
@@ -1294,9 +1292,7 @@ static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end) |
| 1294 | 1294 |
val = *buf_ptr++; |
| 1295 | 1295 |
goto found; |
| 1296 | 1296 |
} |
| 1297 |
-#ifdef DEBUG |
|
| 1298 | 1297 |
skipped++; |
| 1299 |
-#endif |
|
| 1300 | 1298 |
} |
| 1301 | 1299 |
val = -1; |
| 1302 | 1300 |
found: |
| ... | ... |
@@ -143,7 +143,7 @@ const char* av_default_item_name(void* ctx); |
| 143 | 143 |
#ifdef DEBUG |
| 144 | 144 |
# define av_dlog(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) |
| 145 | 145 |
#else |
| 146 |
-# define av_dlog(pctx, ...) |
|
| 146 |
+# define av_dlog(pctx, ...) do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
|
|
| 147 | 147 |
#endif |
| 148 | 148 |
|
| 149 | 149 |
/** |