Commit 1f6b9cc3 authored by Diego Biurrun's avatar Diego Biurrun

Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.

parent f8ea0eb6
...@@ -56,9 +56,6 @@ ...@@ -56,9 +56,6 @@
const char program_name[] = "ffplay"; const char program_name[] = "ffplay";
const int program_birth_year = 2003; const int program_birth_year = 2003;
//#define DEBUG
//#define DEBUG_SYNC
#define MAX_QUEUE_SIZE (15 * 1024 * 1024) #define MAX_QUEUE_SIZE (15 * 1024 * 1024)
#define MIN_AUDIOQ_SIZE (20 * 16 * 1024) #define MIN_AUDIOQ_SIZE (20 * 16 * 1024)
#define MIN_FRAMES 5 #define MIN_FRAMES 5
...@@ -2056,7 +2053,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr) ...@@ -2056,7 +2053,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
n = 2 * dec->channels; n = 2 * dec->channels;
is->audio_clock += (double)data_size / is->audio_clock += (double)data_size /
(double)(n * dec->sample_rate); (double)(n * dec->sample_rate);
#if defined(DEBUG_SYNC) #ifdef DEBUG
{ {
static double last_clock; static double last_clock;
printf("audio: delay=%0.3f clock=%0.3f pts=%0.3f\n", printf("audio: delay=%0.3f clock=%0.3f pts=%0.3f\n",
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
//#define DEBUG //#define DEBUG
//#define DEBUG_PACKET_CONTENTS //#define DEBUG_PACKET_CONTENTS
//#define DEBUG_SAVE_IMAGES
#define DVBSUB_PAGE_SEGMENT 0x10 #define DVBSUB_PAGE_SEGMENT 0x10
#define DVBSUB_REGION_SEGMENT 0x11 #define DVBSUB_REGION_SEGMENT 0x11
...@@ -37,7 +36,7 @@ ...@@ -37,7 +36,7 @@
#define cm (ff_cropTbl + MAX_NEG_CROP) #define cm (ff_cropTbl + MAX_NEG_CROP)
#ifdef DEBUG_SAVE_IMAGES #ifdef DEBUG
#undef fprintf #undef fprintf
#if 0 #if 0
static void png_save(const char *filename, uint8_t *bitmap, int w, int h, static void png_save(const char *filename, uint8_t *bitmap, int w, int h,
...@@ -1174,7 +1173,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx, ...@@ -1174,7 +1173,7 @@ static void dvbsub_parse_page_segment(AVCodecContext *avctx,
} }
#ifdef DEBUG_SAVE_IMAGES #ifdef DEBUG
static void save_display_set(DVBSubContext *ctx) static void save_display_set(DVBSubContext *ctx)
{ {
DVBSubRegion *region; DVBSubRegion *region;
...@@ -1387,7 +1386,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, ...@@ -1387,7 +1386,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf,
sub->num_rects = i; sub->num_rects = i;
#ifdef DEBUG_SAVE_IMAGES #ifdef DEBUG
save_display_set(ctx); save_display_set(ctx);
#endif #endif
......
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
//#define DEBUG_ALIGNMENT #ifdef DEBUG
#ifdef DEBUG_ALIGNMENT
#define ASSERT_ALIGNED(ptr) assert(((unsigned long)ptr&0x0000000F)); #define ASSERT_ALIGNED(ptr) assert(((unsigned long)ptr&0x0000000F));
#else #else
#define ASSERT_ALIGNED(ptr) ; #define ASSERT_ALIGNED(ptr) ;
......
...@@ -31,9 +31,6 @@ ...@@ -31,9 +31,6 @@
#include "rdt.h" #include "rdt.h"
#include "url.h" #include "url.h"
//#define DEBUG
//#define DEBUG_RTP_TCP
static int rtsp_read_play(AVFormatContext *s) static int rtsp_read_play(AVFormatContext *s)
{ {
RTSPState *rt = s->priv_data; RTSPState *rt = s->priv_data;
...@@ -191,9 +188,7 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, ...@@ -191,9 +188,7 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
int id, len, i, ret; int id, len, i, ret;
RTSPStream *rtsp_st; RTSPStream *rtsp_st;
#ifdef DEBUG_RTP_TCP
av_dlog(s, "tcp_read_packet:\n"); av_dlog(s, "tcp_read_packet:\n");
#endif
redo: redo:
for (;;) { for (;;) {
RTSPMessageHeader reply; RTSPMessageHeader reply;
...@@ -212,9 +207,7 @@ redo: ...@@ -212,9 +207,7 @@ redo:
return -1; return -1;
id = buf[0]; id = buf[0];
len = AV_RB16(buf + 1); len = AV_RB16(buf + 1);
#ifdef DEBUG_RTP_TCP
av_dlog(s, "id=%d len=%d\n", id, len); av_dlog(s, "id=%d len=%d\n", id, len);
#endif
if (len > buf_size || len < 12) if (len > buf_size || len < 12)
goto redo; goto redo;
/* get the data */ /* get the data */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment