Fix codec reference in MediaFile (fix #1117)