From 22e8cf4e458dd1b2b3c1ed58f62582e0630a35cd Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 9 Mar 2009 22:01:33 +0100 Subject: [PATCH] vss: Fix need_audio_header(). This braino caused the audio file header to be included in each FEC group. --- vss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vss.c b/vss.c index 79c09ba7..37a80759 100644 --- 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; -- 2.39.2