Make write_streamheader() return a meaningful error code if no codec