simplify ogg_compute_header_len()
authorAndre Noll <maan@systemlinux.org>
Sat, 3 Mar 2007 14:27:52 +0000 (15:27 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 3 Mar 2007 14:27:52 +0000 (15:27 +0100)
ogg_afh.c

index d295f2d..760514a 100644 (file)
--- 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);