It is probably a bit late now but I have seen this happen to many other people and it has just happened to me today but thankfully is now sorted. I was trying to export from my timeline as I have done many times before only this time I got the Codec Error. I tried trashing the preference files and then also noticed that for some reason there was a marked inpoint right at the end of my sequence so I deleted that and everything is working again. So either it was the preference files or the marked in point. Hope that helps in some way.