What if the footer was changed into a header? Write a default header to the file. Write the sequence of frames. After manual stop or stop on card-full, go back and overwrite the header at the beginning of the file.
This would eliminate the issue of not having space to write the footer if the card is full. This would also put the info needed to read the file at the beginning instead of having to fseek to the end. It might also make it easier to fix the header if needed.
This would kill compatibility with anything anyone has already done.
This would eliminate the issue of not having space to write the footer if the card is full. This would also put the info needed to read the file at the beginning instead of having to fseek to the end. It might also make it easier to fix the header if needed.
This would kill compatibility with anything anyone has already done.