diff options
author | Uros Majstorovic <majstor@majstor.org> | 2017-09-09 15:49:35 +0000 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2017-09-09 15:49:35 +0000 |
commit | 7d3e6b74812527f69aabf9c1bbb0eb37051f94da (patch) | |
tree | 5f68a5daf5b6da0d14db49a9fe68482ee0972786 /code/test/vid/enc.c | |
parent | d40fd9b1adab64182ce8af0b8e19cfc8a93171d7 (diff) |
video test prints to stderr
Diffstat (limited to 'code/test/vid/enc.c')
-rw-r--r-- | code/test/vid/enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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."); |