summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-11-12 13:38:22 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-11-12 13:38:22 +0100
commitced858af8f4c99e0a4ebe2a55aa1cabb6ef09904 (patch)
tree5fa1c97571a693e2db40e5e12718927b6b685658 /modules
parent8e024d8b015695d096681104785749c96054f59e (diff)
clean up usage of stderr
Diffstat (limited to 'modules')
-rw-r--r--modules/avcodec/encode.c2
-rw-r--r--modules/h265/fmt.c9
2 files changed, 8 insertions, 3 deletions
diff --git a/modules/avcodec/encode.c b/modules/avcodec/encode.c
index 11d30a0..6485656 100644
--- a/modules/avcodec/encode.c
+++ b/modules/avcodec/encode.c
@@ -616,7 +616,7 @@ int encode_x264(struct videnc_state *st, bool update,
ret = x264_encoder_encode(st->x264, &nal, &i_nal, &pic_in, &pic_out);
if (ret < 0) {
- fprintf(stderr, "x264 [error]: x264_encoder_encode failed\n");
+ warning("avcodec: x264 [error]: x264_encoder_encode failed\n");
}
if (i_nal == 0)
return 0;
diff --git a/modules/h265/fmt.c b/modules/h265/fmt.c
index b30df2c..ac71b10 100644
--- a/modules/h265/fmt.c
+++ b/modules/h265/fmt.c
@@ -1,3 +1,8 @@
+/**
+ * @file h265/fmt.c H.265 Video Codec -- protocol format
+ *
+ * Copyright (C) 2010 Creytiv.com
+ */
#include <string.h>
#include <re.h>
@@ -58,11 +63,11 @@ int h265_nal_decode(struct h265_nal *nal, const uint8_t *p)
nal->nuh_temporal_id_plus1 = p[1] & 0x07;
if (forbidden_zero_bit) {
- re_fprintf(stderr, "?!?!?!?! FORBIDDEN !!! ?!?!?!*\n");
+ warning("h265: nal_decode: FORBIDDEN bit set\n");
return EBADMSG;
}
if (nuh_layer_id != 0) {
- re_fprintf(stderr, "h265_nal_decode: LayerId MUST be zero\n");
+ warning("h265: nal_decode: LayerId MUST be zero\n");
return EBADMSG;
}