Fix bug in H.264 codec detection