X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=vss.c;h=40a18e5cdf475ac312e8581508d10de20881b82d;hb=5000a12ad288893d494ccd04d061752ed022d1d0;hp=85e7da85731a872b27bb91489a22f7796e7861be;hpb=7205bdd68b0ad3c50bbe7b5e01eb62be97aab5c8;p=paraslash.git diff --git a/vss.c b/vss.c index 85e7da85..40a18e5c 100644 --- a/vss.c +++ b/vss.c @@ -356,7 +356,12 @@ static int setup_next_fec_group(struct fec_client *fc, struct vss_task *vsst) g->num_header_slices, data_slices ); /* set group start */ - tv_scale(g->first_chunk - fc->first_stream_chunk, chunk_tv, &tmp); + if (g->num != 0 && vsst->header_len != 0 && fc->first_stream_chunk == 0) + /* chunk #0 is the audio file header */ + tv_scale(g->first_chunk - 1, chunk_tv, &tmp); + else + tv_scale(g->first_chunk - fc->first_stream_chunk, + chunk_tv, &tmp); tv_add(&fc->stream_start, &tmp, &g->start); return 1; }