From: Andre Noll <maan@systemlinux.org>
Date: Sat, 3 Mar 2007 14:27:52 +0000 (+0100)
Subject: simplify ogg_compute_header_len()
X-Git-Tag: v0.2.16~73
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=df93f1e705d07f71eb7cd25b6c3740dade45d92c;p=paraslash.git

simplify ogg_compute_header_len()
---

diff --git a/ogg_afh.c b/ogg_afh.c
index d295f2d3..760514a8 100644
--- a/ogg_afh.c
+++ b/ogg_afh.c
@@ -81,11 +81,9 @@ static int ogg_compute_header_len(void)
 		goto err2;
 	}
 	ret = -E_VORBIS;
-	if (vorbis_synthesis_headerin(&vi, &vc, &packet) < 0) {
+	if (vorbis_synthesis_headerin(&vi, &vc, &packet) < 0)
 		goto err2;
-	} else
-		PARA_INFO_LOG("channels: %i, rate: %li\n", vi.channels,
-			vi.rate);
+	PARA_INFO_LOG("channels: %i, rate: %li\n", vi.channels, vi.rate);
 	ogg_stream_packetin(stream_out, &packet);
 
 	ret = ogg_sync_pageout(sync_in, &page);