cleaned up codec mediaflag