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)
1  2 
fecdec_filter.c

diff --combined fecdec_filter.c
@@@ -6,8 -6,6 +6,8 @@@
  
  /** \file fecdec_filter.c A filter that fec-decodes an audio stream. */
  
 +#include <regex.h>
 +
  #include <dirent.h>
  #include "para.h"
  #include "error.h"
@@@ -396,6 -394,10 +396,10 @@@ static int dispatch_slice(char *buf, si
                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;