X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fecdec_filter.c;h=d5593f25d02c5cde248e0c775a1d3235a279ef8f;hp=376fe6b3cc66ab5965b05b1d479a7ba7b34fe0ed;hb=ac153fd54a0f093581ee863984070a325d5343b8;hpb=7434497d38b31cc9b40e7fdd62b17d1bf25099bc diff --git a/fecdec_filter.c b/fecdec_filter.c index 376fe6b3..d5593f25 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -267,7 +267,7 @@ static int read_fec_header(char *buf, size_t len, struct fec_header *h) h->slice_num = read_u8(buf + 18); h->slice_bytes = read_u16(buf + 20); - if (!h->group_bytes && & h->slice_bytes) + if (!memcmp(buf, FEC_EOF_PACKET, FEC_EOF_PACKET_LEN)) return -E_FECDEC_EOF; // PARA_DEBUG_LOG("group %u, slize %u, slices per group: %u\n", // h->group_num, h->slice_num, h->slices_per_group); @@ -304,7 +304,7 @@ static int dispatch_slice(char *buf, size_t len, struct fec_header *h, return 1; } -static int fecdec(char *buf, size_t len, struct filter_node *fn) +static ssize_t fecdec(char *buf, size_t len, struct filter_node *fn) { int ret; struct fec_header h;