diff --git a/src/lib_ccx/avc_functions.c b/src/lib_ccx/avc_functions.c index 3c02c5db..f6a3d985 100644 --- a/src/lib_ccx/avc_functions.c +++ b/src/lib_ccx/avc_functions.c @@ -3,6 +3,7 @@ #include "utility.h" #include +#define dvprint(...) dbg_print( CCX_DMT_VIDES, __VA_ARGS__) // Functions to parse a AVC/H.264 data stream, see ISO/IEC 14496-10 int ccblocks_in_avc_total=0; diff --git a/src/lib_ccx/lib_ccx.h b/src/lib_ccx/lib_ccx.h index d22c88a1..0aa03271 100644 --- a/src/lib_ccx/lib_ccx.h +++ b/src/lib_ccx/lib_ccx.h @@ -386,7 +386,6 @@ void myth_loop(struct lib_ccx_ctx *ctx, void *enc_ctx); // utility.c void fatal(int exit_code, const char *fmt, ...); -void dvprint(const char *fmt, ...); void mprint (const char *fmt, ...); void sleep_secs (int secs); void dump (LLONG mask, unsigned char *start, int l, unsigned long abs_start, unsigned clear_high_bit); diff --git a/src/lib_ccx/utility.c b/src/lib_ccx/utility.c index 945e6c60..a1eada0d 100644 --- a/src/lib_ccx/utility.c +++ b/src/lib_ccx/utility.c @@ -159,30 +159,6 @@ void dbg_print(LLONG mask, const char *fmt, ...) } } - -/* Shorten some debug output code. */ -void dvprint(const char *fmt, ...) -{ - va_list args; - if (!ccx_options.messages_target) - return; - if(! (ccx_options.debug_mask & CCX_DMT_VIDES )) - return; - - va_start(args, fmt); - if (ccx_options.messages_target==CCX_MESSAGES_STDOUT) - { - vfprintf(stdout, fmt, args); - fflush (stdout); - } - else - { - vfprintf(stderr, fmt, args); - fflush (stderr); - } - va_end(args); -} - void dump (LLONG mask, unsigned char *start, int l, unsigned long abs_start, unsigned clear_high_bit) { LLONG t=temp_debug ? (ccx_options.debug_mask_on_debug | ccx_options.debug_mask) : ccx_options.debug_mask; // Mask override?