vss: Fix need_audio_header().
authorAndre Noll <maan@systemlinux.org>
Mon, 9 Mar 2009 21:01:33 +0000 (22:01 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 9 Mar 2009 21:01:33 +0000 (22:01 +0100)
This braino caused the audio file header to be included in each FEC group.

vss.c

diff --git a/vss.c b/vss.c
index 79c09ba7ffe0a0f78053f25f003868dfa7607577..37a80759e17a09bb2bd21ab8c6678985e5e0da25 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -209,7 +209,7 @@ static int need_audio_header(struct fec_client *fc, struct vss_task *vsst)
                return 0;
        if (!vsst->header_len)
                return 0;
-       if (fc->group.num && tv_diff(&fc->next_header_time, now, NULL) < 0)
+       if (fc->group.num && tv_diff(&fc->next_header_time, now, NULL) > 0)
                return 0;
        tv_add(now, &vsst->header_interval, &fc->next_header_time);
        return 1;