From: Andre Noll Date: Mon, 9 Mar 2009 21:01:33 +0000 (+0100) Subject: vss: Fix need_audio_header(). X-Git-Tag: v0.3.4~43 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=22e8cf4e458dd1b2b3c1ed58f62582e0630a35cd;p=paraslash.git vss: Fix need_audio_header(). This braino caused the audio file header to be included in each FEC group. --- 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;