mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 20:01:42 +00:00
Remove redundant print code
Signed-off-by: Anshul Maheshwari <er.anshul.maheshwari@gmail.com>
This commit is contained in:
parent
2210660ae4
commit
fa6588fa80
@ -3,6 +3,7 @@
|
|||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#define dvprint(...) dbg_print( CCX_DMT_VIDES, __VA_ARGS__)
|
||||||
// Functions to parse a AVC/H.264 data stream, see ISO/IEC 14496-10
|
// Functions to parse a AVC/H.264 data stream, see ISO/IEC 14496-10
|
||||||
|
|
||||||
int ccblocks_in_avc_total=0;
|
int ccblocks_in_avc_total=0;
|
||||||
|
@ -386,7 +386,6 @@ void myth_loop(struct lib_ccx_ctx *ctx, void *enc_ctx);
|
|||||||
|
|
||||||
// utility.c
|
// utility.c
|
||||||
void fatal(int exit_code, const char *fmt, ...);
|
void fatal(int exit_code, const char *fmt, ...);
|
||||||
void dvprint(const char *fmt, ...);
|
|
||||||
void mprint (const char *fmt, ...);
|
void mprint (const char *fmt, ...);
|
||||||
void sleep_secs (int secs);
|
void sleep_secs (int secs);
|
||||||
void dump (LLONG mask, unsigned char *start, int l, unsigned long abs_start, unsigned clear_high_bit);
|
void dump (LLONG mask, unsigned char *start, int l, unsigned long abs_start, unsigned clear_high_bit);
|
||||||
|
@ -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)
|
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?
|
LLONG t=temp_debug ? (ccx_options.debug_mask_on_debug | ccx_options.debug_mask) : ccx_options.debug_mask; // Mask override?
|
||||||
|
Loading…
Reference in New Issue
Block a user