On Wed, 19 Mar 2014, Tanja Batchelor wrote:
--- libavformat/mpeg.c | 6 +++--- libavformat/srtp.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-)diff --git a/libavformat/srtp.c b/libavformat/srtp.c index 6659bfc..7ccba47 100644 --- a/libavformat/srtp.c +++ b/libavformat/srtp.c @@ -400,8 +400,8 @@ static void print_data(const uint8_t *buf, int len) { int i; for (i = 0; i < len; i++) - printf("%02x", buf[i]); - printf("\n"); + av_log("%02x", buf[i]); + av_log("\n"); } static int test_decrypt(struct SRTPContext *srtp, const uint8_t *in, int len, @@ -426,11 +426,11 @@ static void test_encrypt(const uint8_t *data, int in_len, const char *suite, len = ff_srtp_encrypt(&enc, data, in_len, buf, sizeof(buf)); if (!ff_srtp_decrypt(&dec, buf, &len)) { if (len == in_len && !memcmp(buf, data, len)) - printf("Decrypted content matches input\n"); + av_log("Decrypted content matches input\n"); else - printf("Decrypted content doesn't match input\n"); + av_log("Decrypted content doesn't match input\n"); } else { - printf("Decryption failed\n"); + av_log("Decryption failed\n"); } ff_srtp_free(&enc); ff_srtp_free(&dec); -- 1.9.0
This is part of the srtp test program and intentionally uses printf to write the output to stdout instead of stderr - please don't change it to av_log.
// Martin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
