From 7d3e6b74812527f69aabf9c1bbb0eb37051f94da Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 9 Sep 2017 15:49:35 +0000 Subject: video test prints to stderr --- code/test/vid/enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/test/vid/enc.c') diff --git a/code/test/vid/enc.c b/code/test/vid/enc.c index 91fe5e8..9aebf5f 100644 --- a/code/test/vid/enc.c +++ b/code/test/vid/enc.c @@ -118,7 +118,7 @@ int vpx_encode_frame(vpx_codec_ctx_t *codec, vpx_image_t *img, int frame_index, if (send_frame(pkt->data.frame.buf, pkt->data.frame.sz, pkt->data.frame.pts) < 0) { die_codec(codec, "Failed to write compressed frame"); } - printf(keyframe ? "K" : "."); + fprintf(stderr, keyframe ? "K" : "."); fflush(stdout); } } @@ -134,7 +134,7 @@ void vpx_open(const char *codec_arg, int width, int height, int fps, int bitrate const VpxInterface *encoder = get_vpx_encoder_by_name(codec_arg); if (!encoder) die_codec(NULL, "Unsupported codec."); - printf("Using %s\n", vpx_codec_iface_name(encoder->codec_interface())); + fprintf(stderr, "Using %s\n", vpx_codec_iface_name(encoder->codec_interface())); if (!vpx_img_alloc(raw, VPX_IMG_FMT_I420, width, height, 1)) die_codec(NULL, "Failed to allocate image."); -- cgit v1.2.3