diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-08-21 21:04:19 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2003-08-21 21:04:19 +0000 |
commit | c92454179d06b3d6f5650a853561482994cee885 (patch) | |
tree | 13c4828b01c6bf971aea1e05fe062096cadd7b20 /libavformat | |
parent | f80f79643499a1cb3afd8299b7728dd1d1ec95fa (diff) | |
download | ffmpeg-c92454179d06b3d6f5650a853561482994cee885.tar.gz |
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.
Originally committed as revision 2131 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 567e086431..2753bf125b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -603,7 +603,7 @@ static void av_estimate_timings_from_pts(AVFormatContext *ic) 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 @@ void dump_format(AVFormatContext *ic, 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 @@ void dump_format(AVFormatContext *ic, 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]; |