Revision 3b6bbfa0

View differences:

libavcodec/mjpegdec.c
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 1292
            val = *buf_ptr++;
1295 1293
            goto found;
1296 1294
        }
1297
#ifdef DEBUG
1298 1295
        skipped++;
1299
#endif
1300 1296
    }
1301 1297
    val = -1;
1302 1298
found:
libavutil/log.h
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
/**

Also available in: Unified diff