From 548d9ada2e54321f1e3841412fcb3e7fc8ceebe0 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 4 Mar 2017 18:30:19 +0100 Subject: [PATCH] [transcode] Fixup dead assignment --- src/transcode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/transcode.c b/src/transcode.c index 4df09e5a..e1369ee4 100644 --- a/src/transcode.c +++ b/src/transcode.c @@ -1467,9 +1467,7 @@ transcode(struct evbuffer *evbuf, int *icy_timer, struct transcode_ctx *ctx, int if (icy_timer && ctx->encode_ctx->icy_interval) *icy_timer = (ctx->encode_ctx->total_bytes % ctx->encode_ctx->icy_interval < processed); - if (ret == AVERROR_EOF) - ret = 0; - else if (ret < 0) + if ((ret < 0) && (ret != AVERROR_EOF)) return ret; return processed;