Mercurial > libavformat.hg
changeset 197:b8a3fb61d39a libavformat
all human-readable output should go into stderr for now. We really
need a generic logging facility in ffmpeg, but this will suffice for now.
author | romansh |
---|---|
date | Thu, 21 Aug 2003 21:04:19 +0000 |
parents | 01bec1059bdf |
children | 64dbc0b60dbe |
files | utils.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Aug 18 09:20:02 2003 +0000 +++ b/utils.c Thu Aug 21 21:04:19 2003 +0000 @@ -603,7 +603,7 @@ st->start_time < start_time) start_time = st->start_time; } - printf("start=%lld\n", start_time); + fprintf(stderr, "start=%lld\n", start_time); if (start_time != MAXINT64) ic->start_time = start_time; @@ -1173,7 +1173,7 @@ is_output ? ic->oformat->name : ic->iformat->name, is_output ? "to" : "from", url); if (!is_output) { - printf(" Duration: "); + fprintf(stderr, " Duration: "); if (ic->duration != AV_NOPTS_VALUE) { int hours, mins, secs, us; secs = ic->duration / AV_TIME_BASE; @@ -1182,18 +1182,18 @@ secs %= 60; hours = mins / 60; mins %= 60; - printf("%02d:%02d:%02d.%01d", hours, mins, secs, + fprintf(stderr, "%02d:%02d:%02d.%01d", hours, mins, secs, (10 * us) / AV_TIME_BASE); } else { - printf("N/A"); + fprintf(stderr, "N/A"); } - printf(", bitrate: "); + fprintf(stderr, ", bitrate: "); if (ic->bit_rate) { - printf("%d kb/s", ic->bit_rate / 1000); + fprintf(stderr,"%d kb/s", ic->bit_rate / 1000); } else { - printf("N/A"); + fprintf(stderr, "N/A"); } - printf("\n"); + fprintf(stderr, "\n"); } for(i=0;i<ic->nb_streams;i++) { AVStream *st = ic->streams[i];