lavc: make sure not to return EAGAIN from codecs