mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[transcode] Fix type of stream_index so the tests make sense
This commit is contained in:
parent
3aab9b2622
commit
73cddbb9de
@ -578,7 +578,7 @@ open_input(struct decode_ctx *ctx, struct media_file_info *mfi, int decode_video
|
|||||||
{
|
{
|
||||||
AVDictionary *options;
|
AVDictionary *options;
|
||||||
AVCodec *decoder;
|
AVCodec *decoder;
|
||||||
unsigned int stream_index;
|
int stream_index;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
options = NULL;
|
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);
|
ret = avcodec_open2(ctx->ifmt_ctx->streams[stream_index]->codec, decoder, NULL);
|
||||||
if (ret < 0)
|
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;
|
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);
|
ret = avcodec_open2(ctx->ifmt_ctx->streams[stream_index]->codec, decoder, NULL);
|
||||||
if (ret < 0)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user