Add fwrite() error handling in repacketizer_demo.