# HG changeset patch # User diego # Date 1257976670 0 # Node ID 4696e193f943ea499faaa5c5571746102ba8f86c # Parent 6f5a1064e48adbbf5b3c844b6cc2fb2fc5a3d666 Add '#undef fprintf' before PRINT macro that uses fprintf. Otherwise there may be trouble when fprintf is disabled in favor of av_log. diff -r 6f5a1064e48a -r 4696e193f943 utils.c --- a/utils.c Wed Nov 11 20:24:23 2009 +0000 +++ b/utils.c Wed Nov 11 21:57:50 2009 +0000 @@ -3219,6 +3219,7 @@ static void hex_dump_internal(void *avcl, FILE *f, int level, uint8_t *buf, int size) { int len, i, j, c; +#undef fprintf #define PRINT(...) do { if (!f) av_log(avcl, level, __VA_ARGS__); else fprintf(f, __VA_ARGS__); } while(0) for(i=0;istream_index); PRINT(" keyframe=%d\n", ((pkt->flags & PKT_FLAG_KEY) != 0));