A library should not crash on purpose. --- I find dangerous leaving them around, the performance loss is negligible probably, but leaving them around on release build feels wrong nonetheless.
libavcodec/dvdsubenc.c | 2 +- libavcodec/libschroedingerdec.c | 2 +- libavcodec/libschroedingerenc.c | 2 +- libavcodec/libvorbis.c | 2 +- libavcodec/libxvid_rc.c | 2 +- libavcodec/motion_est.c | 2 +- libavcodec/mpegvideo_xvmc.c | 2 +- libavcodec/qcelpdec.c | 2 +- libavcodec/qdm2.c | 2 +- libavcodec/ratecontrol.c | 2 +- libavcodec/svq1dec.c | 2 +- libavcodec/svq1enc.c | 2 +- libavcodec/vc1.c | 2 +- libavcodec/vc1dec.c | 2 +- libavcodec/vdpau.c | 2 +- libavcodec/vorbisdec.c | 2 +- libavcodec/vorbisenc.c | 2 +- libavcodec/wma.c | 2 +- libavcodec/wmadec.c | 2 +- libavcodec/wmaenc.c | 2 +- libavfilter/vf_yadif.c | 2 +- libavformat/asfdec.c | 2 +- libavformat/asfenc.c | 2 +- libavformat/avidec.c | 2 +- libavformat/flvenc.c | 2 +- libavformat/mov.c | 2 +- libavformat/movenc.c | 2 +- libavformat/mpeg.c | 2 +- libavformat/mpegenc.c | 2 +- libavformat/mux.c | 2 +- libavformat/nutdec.c | 2 +- libavformat/swf.h | 2 +- libavformat/utils.c | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c index 5e362b7..c8fb521 100644 --- a/libavcodec/dvdsubenc.c +++ b/libavcodec/dvdsubenc.c @@ -21,7 +21,7 @@ #include "avcodec.h" #include "bytestream.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> // ncnt is the nibble counter diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c index 7fedc63..ee9abf7 100644 --- a/libavcodec/libschroedingerdec.c +++ b/libavcodec/libschroedingerdec.c @@ -37,7 +37,7 @@ #include "internal.h" #include "libschroedinger.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> diff --git a/libavcodec/libschroedingerenc.c b/libavcodec/libschroedingerenc.c index 210dd34..fe6f7b4 100644 --- a/libavcodec/libschroedingerenc.c +++ b/libavcodec/libschroedingerenc.c @@ -27,7 +27,7 @@ * (http://dirac.sourceforge.net/specification.html). */ -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #include <schroedinger/schro.h> diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c index 8e02057..aa40d40 100644 --- a/libavcodec/libvorbis.c +++ b/libavcodec/libvorbis.c @@ -35,7 +35,7 @@ #include "vorbis.h" #include "vorbis_parser.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /* Number of samples the user should send in each call. diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c index 9084d33..dc9ca32 100644 --- a/libavcodec/libxvid_rc.c +++ b/libavcodec/libxvid_rc.c @@ -32,7 +32,7 @@ #include "libxvid.h" #include "mpegvideo.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /* Wrapper to work around the lack of mkstemp() on mingw. diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index 04ae49e..b5a60f0 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -35,7 +35,7 @@ #include "mathops.h" #include "mpegvideo.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #define P_LEFT P[1] diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c index e95c91f..15ae072 100644 --- a/libavcodec/mpegvideo_xvmc.c +++ b/libavcodec/mpegvideo_xvmc.c @@ -25,7 +25,7 @@ #include "avcodec.h" #include "mpegvideo.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #include "xvmc.h" diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c index ead7d90..f81f13b 100644 --- a/libavcodec/qcelpdec.c +++ b/libavcodec/qcelpdec.c @@ -40,7 +40,7 @@ #include "acelp_vectors.h" #include "lsp.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> typedef enum { diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index 1e0811c..f3ccfaa 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -47,7 +47,7 @@ #include "qdm2data.h" #include "qdm2_tablegen.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 5aaf151..f2d96de 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -31,7 +31,7 @@ #include "mpegvideo.h" #include "libavutil/eval.h" -#undef NDEBUG // Always check asserts, the speed effect is far too small to disable them. +//#undef NDEBUG // Always check asserts, the speed effect is far too small to disable them. #include <assert.h> #ifndef M_E diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index 4b8b656..b826a5d 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -39,7 +39,7 @@ #include "mathops.h" #include "svq1.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> extern const uint8_t ff_mvtab[33][2]; diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 70d1ee5..fe15b2d 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -35,7 +35,7 @@ #include "svq1.h" #include "svq1enc_cb.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> typedef struct SVQ1Context { diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index 23012cd..c0f014c 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -37,7 +37,7 @@ #include "unary.h" #include "simple_idct.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /***********************************************************************/ diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index a1c9890..83c54c1 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -40,7 +40,7 @@ #include "mathops.h" #include "vdpau_internal.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #define MB_INTRA_VLC_BITS 9 diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index bf1f81e..821baa9 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -26,7 +26,7 @@ #include "h264.h" #include "vc1.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #include "vdpau.h" diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 03c80b4..b55c498 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -42,7 +42,7 @@ #define V_MAX_VLCS (1 << 16) #define V_MAX_PARTITIONS (1 << 20) -#undef NDEBUG +//#undef NDEBUG #include <assert.h> typedef struct { diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c index db0394a..5658b64 100644 --- a/libavcodec/vorbisenc.c +++ b/libavcodec/vorbisenc.c @@ -34,7 +34,7 @@ #define BITSTREAM_WRITER_LE #include "put_bits.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> typedef struct { diff --git a/libavcodec/wma.c b/libavcodec/wma.c index db27646..5a06d9f 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -26,7 +26,7 @@ #include "wma_common.h" #include "wmadata.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /* XXX: use same run/length optimization as mpeg decoders */ diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index b9b176e..30667cb 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -38,7 +38,7 @@ #include "internal.h" #include "wma.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #define EXPVLCBITS 8 diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index f5bdb67..279a3e6 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -24,7 +24,7 @@ #include "internal.h" #include "wma.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index 2b89048..837b655 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -29,7 +29,7 @@ #include "video.h" #include "yadif.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #define CHECK(j)\ diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index a7fdc9e..c445944 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -91,7 +91,7 @@ static const AVClass asf_class = { .version = LIBAVUTIL_VERSION_INT, }; -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #define ASF_MAX_STREAMS 127 diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index a523b3a..c8e048b 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -26,7 +26,7 @@ #include "riff.h" #include "asf.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> diff --git a/libavformat/avidec.c b/libavformat/avidec.c index cf24e8c..9deb475 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -30,7 +30,7 @@ #include "dv.h" #include "riff.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> typedef struct AVIStream { diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 37f3777..379f9ce 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -27,7 +27,7 @@ #include "internal.h" #include "metadata.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> static const AVCodecTag flv_video_codec_ids[] = { diff --git a/libavformat/mov.c b/libavformat/mov.c index 2d87a08..1257d03 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -51,7 +51,7 @@ #include "qtpalette.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /* those functions parse an atom */ diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 4ed99b7..8e9ecf8 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -40,7 +40,7 @@ #include "rtpenc.h" #include "mov_chan.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> static const AVOption options[] = { diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 8a4c6d7..d57e423 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -23,7 +23,7 @@ #include "internal.h" #include "mpeg.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /*********************************************/ diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 85a12d6..ccbe76b 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -31,7 +31,7 @@ #define MAX_PAYLOAD_SIZE 4096 -#undef NDEBUG +//#undef NDEBUG #include <assert.h> typedef struct PacketDesc { diff --git a/libavformat/mux.c b/libavformat/mux.c index b51f906..14d74db 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -42,7 +42,7 @@ #include "network.h" #endif -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /** diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index cc5869e..ad9970b 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -29,7 +29,7 @@ #include "nut.h" #include "riff.h" -#undef NDEBUG +//#undef NDEBUG #include <assert.h> #define NUT_MAX_STREAMS 256 /* arbitrary sanity check value */ diff --git a/libavformat/swf.h b/libavformat/swf.h index 79c3c1d..419ca87 100644 --- a/libavformat/swf.h +++ b/libavformat/swf.h @@ -61,7 +61,7 @@ #define VIDEO_ID 0 #define SHAPE_ID 1 -#undef NDEBUG +//#undef NDEBUG #include <assert.h> typedef struct SWFContext { diff --git a/libavformat/utils.c b/libavformat/utils.c index eb01886..34e42a7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -42,7 +42,7 @@ #include "network.h" #endif -#undef NDEBUG +//#undef NDEBUG #include <assert.h> /** -- 1.8.2.1 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
