Merge branch 'maint'
authorAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:24:28 +0000 (19:24 +0100)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:24:28 +0000 (19:24 +0100)
fecdec_filter.c

index d7427c2..2c63fc6 100644 (file)
@@ -396,6 +396,10 @@ static int dispatch_slice(char *buf, size_t len, struct fec_header *h,
                return 1;
        if (group_complete(fg)) {
                if (pfd->completion_status == GCS_NO_COMPLETE_GROUP) {
+                       enum fec_group_usability u = group_is_usable(fg, pfd);
+                       assert(u != FEC_GROUP_USABLE_SKIP_HEADER);
+                       if (u == FEC_GROUP_UNUSABLE)
+                               return 1;
                        pfd->completion_status = GCS_FIRST_GROUP_COMPLETE;
                        pfd->first_complete_group = fg;
                        return 1;