From 73cddbb9de87e4fec6232be80273e1e806dbd695 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 6 Feb 2016 19:51:13 +0100 Subject: [PATCH] [transcode] Fix type of stream_index so the tests make sense --- src/transcode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transcode.c b/src/transcode.c index b7001142..9b7a29f7 100644 --- a/src/transcode.c +++ b/src/transcode.c @@ -578,7 +578,7 @@ open_input(struct decode_ctx *ctx, struct media_file_info *mfi, int decode_video { AVDictionary *options; AVCodec *decoder; - unsigned int stream_index; + int stream_index; int ret; options = NULL; @@ -644,7 +644,7 @@ open_input(struct decode_ctx *ctx, struct media_file_info *mfi, int decode_video ret = avcodec_open2(ctx->ifmt_ctx->streams[stream_index]->codec, decoder, NULL); if (ret < 0) { - DPRINTF(E_LOG, L_XCODE, "Failed to open decoder for stream #%u\n", stream_index); + DPRINTF(E_LOG, L_XCODE, "Failed to open decoder for stream #%d\n", stream_index); goto out_fail; } @@ -665,7 +665,7 @@ open_input(struct decode_ctx *ctx, struct media_file_info *mfi, int decode_video ret = avcodec_open2(ctx->ifmt_ctx->streams[stream_index]->codec, decoder, NULL); if (ret < 0) { - DPRINTF(E_LOG, L_XCODE, "Failed to open decoder for stream #%u\n", stream_index); + DPRINTF(E_LOG, L_XCODE, "Failed to open decoder for stream #%d\n", stream_index); return 0; }