fix #1 more stable when meet codec error.