libfec: fix back-up header validation

If the primary fec_header is invalid, correctly validate the
back-up header even if it's not at the beginning of a block.

Change-Id: Ida15e6eeb08f3d50d4e096897ccc814c0949e8f8
diff --git a/libfec/fec_open.cpp b/libfec/fec_open.cpp
index 1923406..c1d4afd 100644
--- a/libfec/fec_open.cpp
+++ b/libfec/fec_open.cpp
@@ -117,6 +117,9 @@
         return -1;
     }
 
+    /* move offset back to the beginning of the block for validating header */
+    offset -= offset % FEC_BLOCKSIZE;
+
     if (header.magic != FEC_MAGIC) {
         return -1;
     }