j2k: avoid printf() useage in debug code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/8/head
Michael Niedermayer 12 years ago
parent b023392f34
commit 9bb188da96
  1. 8
      libavcodec/j2k.c

@ -36,16 +36,16 @@ void ff_j2k_printv(int *tab, int l)
{
int i;
for (i = 0; i < l; i++)
printf("%.3d ", tab[i]);
printf("\n");
av_log(NULL, AV_LOG_DEBUG, "%.3d ", tab[i]);
av_log(NULL, AV_LOG_DEBUG, "\n");
}
void ff_j2k_printu(uint8_t *tab, int l)
{
int i;
for (i = 0; i < l; i++)
printf("%.3hd ", tab[i]);
printf("\n");
av_log(NULL, AV_LOG_DEBUG, "%.3hd ", tab[i]);
av_log(NULL, AV_LOG_DEBUG, "\n");
}
#endif

Loading…
Cancel
Save