The DEBUG macro (and some similar ones) has no significance in the code and thus
can be removed we dont need the comment either.
Its of no use unless we actually use that macro for good.
---
libavcodec/dnxhddec.c | 3 ---
libavcodec/dnxhdenc.c | 1 -
libavcodec/dsputil.h | 2 --
libavcodec/gifdec.c | 1 -
libavcodec/h263.c | 4 ----
libavcodec/h263dec.c | 1 -
libavcodec/ituh263dec.c | 4 ----
libavcodec/ituh263enc.c | 4 ----
libavcodec/mjpegenc.c | 1 -
libavcodec/mpeg12.c | 5 -----
libavcodec/mpegvideo.c | 10 ----------
libavcodec/mpegvideo_enc.c | 8 --------
libavcodec/msmpeg4.c | 1 -
libavcodec/pngdec.c | 2 --
libavcodec/pngenc.c | 2 --
libavcodec/rv10.c | 2 --
libavcodec/rv34.c | 2 --
libavcodec/tta.c | 2 +-
libavformat/isom.c | 2 --
libavformat/mov.c | 1 -
libavformat/mxfdec.c | 2 --
libavformat/mxfenc.c | 2 --
libavformat/r3d.c | 2 --
libavformat/rtp.c | 2 --
libavformat/rtpdec.c | 2 --
libavformat/rtpenc.c | 2 --
libavformat/rtsp.c | 2 --
libpostproc/postprocess.c | 1 -
28 files changed, 1 insertions(+), 72 deletions(-)
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 956196c..5ecab6a 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -22,9 +22,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-//#define TRACE
-//#define DEBUG
-
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "get_bits.h"
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index 2b7089b..45977ce 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -23,7 +23,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-//#define DEBUG
#define RC_VARIANCE 1 // use variance or ssd for fast rc
#include "libavutil/opt.h"
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 579b54b..4679d4d 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -33,8 +33,6 @@
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
-
-//#define DEBUG
/* dct code */
typedef short DCTELEM;
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 9bac254..7b7d639 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-//#define DEBUG
#include "libavutil/imgutils.h"
#include "avcodec.h"
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 77a1bb8..883f72f 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -27,7 +27,6 @@
* h263/mpeg4 codec.
*/
-//#define DEBUG
#include <limits.h>
#include "dsputil.h"
@@ -40,9 +39,6 @@
#include "flv.h"
#include "mpeg4video.h"
-//#undef NDEBUG
-//#include <assert.h>
-
uint8_t ff_h263_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index f056d1f..4496ef3 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -39,7 +39,6 @@
#include "flv.h"
#include "mpeg4video.h"
-//#define DEBUG
//#define PRINT_FRAME_TIME
av_cold int ff_h263_decode_init(AVCodecContext *avctx)
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index 148bb33..240c348 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -27,7 +27,6 @@
* h263 decoder.
*/
-//#define DEBUG
#include <limits.h>
#include "libavutil/mathematics.h"
@@ -40,9 +39,6 @@
#include "flv.h"
#include "mpeg4video.h"
-//#undef NDEBUG
-//#include <assert.h>
-
// The defines below define the number of bits that are read at once for
// reading vlc values. Changing these may improve speed and data cache needs
// be aware though that decreasing them may need the number of stages that is
diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c
index 6efba2d..c04283d 100644
--- a/libavcodec/ituh263enc.c
+++ b/libavcodec/ituh263enc.c
@@ -27,7 +27,6 @@
* h263 bitstream encoder.
*/
-//#define DEBUG
#include <limits.h>
#include "dsputil.h"
@@ -40,9 +39,6 @@
#include "mpeg4video.h"
#include "internal.h"
-//#undef NDEBUG
-//#include <assert.h>
-
/**
* Table of number of bits a motion vector component needs.
*/
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index d1005c8..91d38dd 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -30,7 +30,6 @@
* MJPEG encoder.
*/
-//#define DEBUG
#include <assert.h>
#include "avcodec.h"
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 4515ef0..986fbca 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -25,7 +25,6 @@
* MPEG-1/2 decoder
*/
-//#define DEBUG
#include "internal.h"
#include "avcodec.h"
#include "dsputil.h"
@@ -39,10 +38,6 @@
#include "xvmc_internal.h"
#include "thread.h"
-//#undef NDEBUG
-//#include <assert.h>
-
-
#define MV_VLC_BITS 9
#define MBINCR_VLC_BITS 9
#define MB_PAT_VLC_BITS 9
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 50e6ad6..a6fd286 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -41,9 +41,6 @@
#include "thread.h"
#include <limits.h>
-//#undef NDEBUG
-//#include <assert.h>
-
static void dct_unquantize_mpeg1_intra_c(MpegEncContext *s,
DCTELEM *block, int n, int qscale);
static void dct_unquantize_mpeg1_inter_c(MpegEncContext *s,
@@ -59,13 +56,6 @@ static void dct_unquantize_h263_intra_c(MpegEncContext *s,
static void dct_unquantize_h263_inter_c(MpegEncContext *s,
DCTELEM *block, int n, int qscale);
-
-/* enable all paranoid tests for rounding, overflows, etc... */
-//#define PARANOID
-
-//#define DEBUG
-
-
static const uint8_t ff_default_chroma_qscale_table[32] = {
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 2e0e982..3ac74b1 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -45,20 +45,12 @@
#include "internal.h"
#include <limits.h>
-//#undef NDEBUG
-//#include <assert.h>
-
static int encode_picture(MpegEncContext *s, int picture_number);
static int dct_quantize_refine(MpegEncContext *s, DCTELEM *block, int16_t
*weight, DCTELEM *orig, int n, int qscale);
static int sse_mb(MpegEncContext *s);
static void denoise_dct_c(MpegEncContext *s, DCTELEM *block);
static int dct_quantize_trellis_c(MpegEncContext *s, DCTELEM *block, int n,
int qscale, int *overflow);
-/* enable all paranoid tests for rounding, overflows, etc... */
-//#define PARANOID
-
-//#define DEBUG
-
static uint8_t default_mv_penalty[MAX_FCODE + 1][MAX_MV * 2 + 1];
static uint8_t default_fcode_tab[MAX_MV * 2 + 1];
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index 11a1915..1df326e 100644
--- a/libavcodec/msmpeg4.c
+++ b/libavcodec/msmpeg4.c
@@ -42,7 +42,6 @@
* - (encoding) select best mv table (two choices)
* - (encoding) select best vlc/dc table
*/
-//#define DEBUG
#define DC_VLC_BITS 9
#define V2_INTRA_CBPC_VLC_BITS 3
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 801085b..083d3d5 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -30,8 +30,6 @@
#include <zlib.h>
-//#define DEBUG
-
typedef struct PNGDecContext {
PNGDSPContext dsp;
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 9325348..d55d238 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -29,8 +29,6 @@
#include <zlib.h>
-//#define DEBUG
-
#define IOBUF_SIZE 4096
typedef struct PNGEncContext {
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index 1d7fd6b..43c5651 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -32,8 +32,6 @@
#include "mpeg4video.h"
#include "h263.h"
-//#define DEBUG
-
#define RV_GET_MAJOR_VER(x) ((x) >> 28)
#define RV_GET_MINOR_VER(x) (((x) >> 20) & 0xFF)
#define RV_GET_MICRO_VER(x) (((x) >> 12) & 0xFF)
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index e6af079..c221f27 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -39,8 +39,6 @@
#include "rv34data.h"
#include "rv34.h"
-//#define DEBUG
-
static inline void ZERO8x2(void* dst, int stride)
{
fill_rectangle(dst, 1, 2, stride, 0, 4);
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 4656ce1..a327bd8 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -28,7 +28,7 @@
*/
#define BITSTREAM_READER_LE
-//#define DEBUG
+
#include <limits.h>
#include "avcodec.h"
#include "get_bits.h"
diff --git a/libavformat/isom.c b/libavformat/isom.c
index eab304c..9ee8341 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -21,8 +21,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-//#define DEBUG
-
#include "avformat.h"
#include "internal.h"
#include "isom.h"
diff --git a/libavformat/mov.c b/libavformat/mov.c
index b7d8a55..c6a1aef 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -22,7 +22,6 @@
#include <limits.h>
-//#define DEBUG
//#define MOV_EXPORT_ALL_METADATA
#include "libavutil/intreadwrite.h"
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 96b662f..30eda8e 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -43,8 +43,6 @@
* Only tracks with associated descriptors will be decoded. "Highly Desirable"
SMPTE 377M D.1
*/
-//#define DEBUG
-
#include "libavutil/aes.h"
#include "libavutil/mathematics.h"
#include "libavcodec/bytestream.h"
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 597a4f7..44f15aa 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -30,8 +30,6 @@
* SMPTE RP224: Registry of SMPTE Universal Labels
*/
-//#define DEBUG
-
#include <math.h>
#include <time.h>
diff --git a/libavformat/r3d.c b/libavformat/r3d.c
index 7f0e8de..c09d64a 100644
--- a/libavformat/r3d.c
+++ b/libavformat/r3d.c
@@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-//#define DEBUG
-
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/mathematics.h"
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index b6b4b72..981a6fc 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -24,8 +24,6 @@
#include "rtp.h"
-//#define DEBUG
-
/* from http://www.iana.org/assignments/rtp-parameters last updated 05 January
2005 */
/* payload types >= 96 are dynamic;
* payload types between 72 and 76 are reserved for RTCP conflict avoidance;
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 3442c9b..7d62257 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -32,8 +32,6 @@
#include "rtpdec.h"
#include "rtpdec_formats.h"
-//#define DEBUG
-
/* TODO: - add RTCP statistics reporting (should be optional).
- add support for h263/mpeg4 packetized output : IDEA: send a
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 1f036a6..4784cde 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -28,8 +28,6 @@
#include "rtpenc.h"
-//#define DEBUG
-
static const AVOption options[] = {
FF_RTP_FLAG_OPTS(RTPMuxContext, flags),
{ "payload_type", "Specify RTP payload type", offsetof(RTPMuxContext,
payload_type), AV_OPT_TYPE_INT, {.dbl = -1 }, -1, 127,
AV_OPT_FLAG_ENCODING_PARAM },
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index cdcda7e..cb76d53 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -47,8 +47,6 @@
#include "url.h"
#include "rtpenc.h"
-//#define DEBUG
-
/* Timeout values for socket poll, in ms,
* and read_packet(), in seconds */
#define POLL_TIMEOUT_MS 100
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index c363fa7..3eec7a0 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -83,7 +83,6 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x
... checks
//#define HAVE_AMD3DNOW
//#undef HAVE_MMX
//#undef ARCH_X86
-//#define DEBUG_BRIGHTNESS
#include "postprocess.h"
#include "postprocess_internal.h"
#include "libavutil/avstring.h"
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel