From df93f1e705d07f71eb7cd25b6c3740dade45d92c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 3 Mar 2007 15:27:52 +0100 Subject: [PATCH] simplify ogg_compute_header_len() --- ogg_afh.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.39.5