Have you checked if your codec might not be broken?